mirror of https://gitee.com/bigwinds/arangodb
properly return index in case of unique constraint violation (#2716)
This commit is contained in:
parent
1d944b97a4
commit
c3f346e0a5
|
@ -398,7 +398,7 @@ void RestVocbaseBaseHandler::generateTransactionError(
|
|||
|
||||
case TRI_ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED:
|
||||
generateError(rest::ResponseCode::CONFLICT, result.code,
|
||||
"cannot create document, unique constraint violated");
|
||||
result.errorMessage);
|
||||
return;
|
||||
|
||||
case TRI_ERROR_ARANGO_DOCUMENT_KEY_BAD:
|
||||
|
|
Loading…
Reference in New Issue