8000 show type of index when non-implemented exception is thrown (#10425) · arangodb/arangodb@1f41dbd · GitHub
[go: up one dir, main page]

Skip to content

Commit 1f41dbd

Browse files
jsteemannKVS85
authored andcommitted
show type of index when non-implemented exception is thrown (#10425)
* show type of index when non-implemented exception is thrown * fix message
1 parent 84e3dc0 commit 1f41dbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arangod/Indexes/Index.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ arangodb::aql::AstNode* Index::specializeCondition(arangodb::aql::AstNode* /* no
688688
arangodb::aql::Variable const* /* reference */) const {
689689
// the default implementation should never be called
690690
TRI_ASSERT(false);
691-
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, "no default implementation for specializeCondition");
691+
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, std::string("no default implementation for specializeCondition. index type: ") + typeName());
692692
}
693693

694694
std::unique_ptr<IndexIterator> Index::iteratorForCondition(transaction::Methods* /* trx */,
@@ -697,7 +697,7 @@ std::unique_ptr<IndexIterator> Index::iteratorForCondition(transaction::Methods*
697697
IndexIteratorOptions const& /* opts */) {
698698
// the default implementation should never be called
699699
TRI_ASSERT(false);
700-
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, "no default implementation for iteratorForCondition");
700+
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL, std::string("no default implementation for iteratorForCondition. index type: ") + typeName());
701701
}
702702

703703
/// @brief perform some base checks for an index condition part

0 commit comments

Comments
 (0)
0