diff --git a/arangod/VocBase/Graphs.cpp b/arangod/VocBase/Graphs.cpp index 37729794fa..71c400f798 100644 --- a/arangod/VocBase/Graphs.cpp +++ b/arangod/VocBase/Graphs.cpp @@ -91,12 +91,16 @@ triagens::aql::Graph* triagens::arango::lookupGraphByName (TRI_vocbase_t* vocbas SingleCollectionReadOnlyTransaction trx(new StandaloneTransactionContext(), vocbase, collName); int res = trx.begin(); if (res != TRI_ERROR_NO_ERROR) { - THROW_ARANGO_EXCEPTION(res); + THROW_ARANGO_EXCEPTION_FORMAT(res, + "while looking up graph '%s' in _graphs", + name.c_str()); } TRI_doc_mptr_copy_t mptr; res = trx.read(&mptr, name); if (res != TRI_ERROR_NO_ERROR) { - THROW_ARANGO_EXCEPTION(res); + THROW_ARANGO_EXCEPTION_FORMAT(res, + "while looking up graph '%s' in _graphs", + name.c_str()); } TRI_shaped_json_t document; TRI_EXTRACT_SHAPED_JSON_MARKER(document, mptr.getDataPtr());