1
0
Fork 0

show type of index when non-implemented exception is thrown (#10425)

* show type of index when non-implemented exception is thrown

* fix message
This commit is contained in:
Jan 2019-11-13 16:42:00 +01:00 committed by KVS85
parent 84e3dc03db
commit 1f41dbd256
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