1
0
Fork 0

properly return index in case of unique constraint violation (#2716)

This commit is contained in:
Jan 2017-07-03 18:42:21 +02:00 committed by Frank Celler
parent 1d944b97a4
commit c3f346e0a5
1 changed files with 1 additions and 1 deletions

View File

@ -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: