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 c8cf679fb2
commit 666ea460cf
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 { arangodb::aql::Variable const* /* reference */) const {
// the default implementation should never be called // the default implementation should never be called
TRI_ASSERT(false); 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 */, std::unique_ptr<IndexIterator> Index::iteratorForCondition(transaction::Methods* /* trx */,
@ -697,7 +697,7 @@ std::unique_ptr<IndexIterator> Index::iteratorForCondition(transaction::Methods*
IndexIteratorOptions const& /* opts */) { IndexIteratorOptions const& /* opts */) {
// the default implementation should never be called // the default implementation should never be called
TRI_ASSERT(false); 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 /// @brief perform some base checks for an index condition part