1
0
Fork 0

show index type in not implemented exception (#10426)

This commit is contained in:
Jan 2019-11-13 16:46:33 +01:00 committed by GitHub
parent 5f7803e705
commit 848b62a219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -688,7 +688,7 @@ arangodb::aql::AstNode* Index::specializeCondition(arangodb::aql::AstNode* /* no
arangodb::aql::Variable const* /* reference */) const {
// the default implementation should never be called
TRI_ASSERT(false);
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, "no default implementation for specializeCondition");
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, std::string("no default implementation for specializeCondition. index type: ") + typeName());
}
std::unique_ptr<IndexIterator> Index::iteratorForCondition(transaction::Methods* /* trx */,
@ -697,7 +697,7 @@ std::unique_ptr<IndexIterator> Index::iteratorForCondition(transaction::Methods*
IndexIteratorOptions const& /* opts */) {
// the default implementation should never be called
TRI_ASSERT(false);
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, "no default implementation for iteratorForCondition");
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, std::string("no default implementation for iteratorForCondition. index type: ") + typeName());
}
/// @brief perform some base checks for an index condition part