1
0
Fork 0

respond with better error message

This commit is contained in:
Jan Steemann 2016-07-11 13:42:14 +02:00
parent f5f7f99394
commit fe845d4b7a
1 changed files with 2 additions and 2 deletions

View File

@ -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);