From fe845d4b7a2015ea698b5754c903fd0cdc2c10cb Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Mon, 11 Jul 2016 13:42:14 +0200 Subject: [PATCH] respond with better error message --- arangod/VocBase/document-collection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arangod/VocBase/document-collection.cpp b/arangod/VocBase/document-collection.cpp index 66cde165ae..86df815cee 100644 --- a/arangod/VocBase/document-collection.cpp +++ b/arangod/VocBase/document-collection.cpp @@ -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);