mirror of https://gitee.com/bigwinds/arangodb
slightly improve error message
This commit is contained in:
parent
32e1d78831
commit
e949b39d27
|
@ -191,9 +191,9 @@ void BaseTraverserEngine::getVertexData(VPackSlice vertex, VPackBuilder& builder
|
||||||
auto shards = _vertexShards.find(name);
|
auto shards = _vertexShards.find(name);
|
||||||
if (shards == _vertexShards.end()) {
|
if (shards == _vertexShards.end()) {
|
||||||
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_QUERY_COLLECTION_LOCK_FAILED,
|
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_QUERY_COLLECTION_LOCK_FAILED,
|
||||||
"Collection not known to Traversal " +
|
"collection not known to traversal: '" +
|
||||||
name + " please add 'WITH " + name +
|
name + "'. please add 'WITH " + name +
|
||||||
"' as the first line in your AQL");
|
"' as the first line in your AQL query");
|
||||||
// The collection is not known here!
|
// The collection is not known here!
|
||||||
// Maybe handle differently
|
// Maybe handle differently
|
||||||
}
|
}
|
||||||
|
@ -244,9 +244,9 @@ void BaseTraverserEngine::getVertexData(VPackSlice vertex, size_t depth,
|
||||||
auto shards = _vertexShards.find(name);
|
auto shards = _vertexShards.find(name);
|
||||||
if (shards == _vertexShards.end()) {
|
if (shards == _vertexShards.end()) {
|
||||||
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_QUERY_COLLECTION_LOCK_FAILED,
|
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_QUERY_COLLECTION_LOCK_FAILED,
|
||||||
"Collection not known to Traversal " +
|
"collection not known to traversal: '" +
|
||||||
name + " please add 'WITH " + name +
|
name + "'. please add 'WITH " + name +
|
||||||
"' as the first line in your AQL");
|
"' as the first line in your AQL query");
|
||||||
}
|
}
|
||||||
builder.add(v);
|
builder.add(v);
|
||||||
for (std::string const& shard : shards->second) {
|
for (std::string const& shard : shards->second) {
|
||||||
|
|
Loading…
Reference in New Issue