From e949b39d278e04e6bcece6e0d7f967e3f341c01f Mon Sep 17 00:00:00 2001 From: jsteemann Date: Wed, 19 Apr 2017 10:44:24 +0200 Subject: [PATCH] slightly improve error message --- arangod/Cluster/TraverserEngine.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arangod/Cluster/TraverserEngine.cpp b/arangod/Cluster/TraverserEngine.cpp index d3c5460f4b..604ed8098e 100644 --- a/arangod/Cluster/TraverserEngine.cpp +++ b/arangod/Cluster/TraverserEngine.cpp @@ -191,9 +191,9 @@ void BaseTraverserEngine::getVertexData(VPackSlice vertex, VPackBuilder& builder auto shards = _vertexShards.find(name); if (shards == _vertexShards.end()) { THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_QUERY_COLLECTION_LOCK_FAILED, - "Collection not known to Traversal " + - name + " please add 'WITH " + name + - "' as the first line in your AQL"); + "collection not known to traversal: '" + + name + "'. please add 'WITH " + name + + "' as the first line in your AQL query"); // The collection is not known here! // Maybe handle differently } @@ -244,9 +244,9 @@ void BaseTraverserEngine::getVertexData(VPackSlice vertex, size_t depth, auto shards = _vertexShards.find(name); if (shards == _vertexShards.end()) { THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_QUERY_COLLECTION_LOCK_FAILED, - "Collection not known to Traversal " + - name + " please add 'WITH " + name + - "' as the first line in your AQL"); + "collection not known to traversal: '" + + name + "'. please add 'WITH " + name + + "' as the first line in your AQL query"); } builder.add(v); for (std::string const& shard : shards->second) {