1
0
Fork 0

slightly improve error message

This commit is contained in:
jsteemann 2017-04-19 10:44:24 +02:00
parent 32e1d78831
commit e949b39d27
1 changed files with 6 additions and 6 deletions

View File

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