mirror of https://gitee.com/bigwinds/arangodb
respond with better error message
This commit is contained in:
parent
f5f7f99394
commit
fe845d4b7a
|
@ -3365,7 +3365,7 @@ int TRI_document_collection_t::update(Transaction* trx,
|
|||
if (!newSlice.isObject()) {
|
||||
return TRI_ERROR_ARANGO_DOCUMENT_TYPE_INVALID;
|
||||
}
|
||||
|
||||
|
||||
// initialize the result
|
||||
TRI_ASSERT(mptr != nullptr);
|
||||
mptr->setVPack(nullptr);
|
||||
|
@ -3832,7 +3832,7 @@ int TRI_document_collection_t::lookupDocument(
|
|||
TRI_doc_mptr_t*& header) {
|
||||
|
||||
if (!key.isString()) {
|
||||
return TRI_ERROR_INTERNAL;
|
||||
return TRI_ERROR_ARANGO_DOCUMENT_KEY_BAD;
|
||||
}
|
||||
|
||||
header = primaryIndex()->lookupKey(trx, key);
|
||||
|
|
Loading…
Reference in New Issue