mirror of https://gitee.com/bigwinds/arangodb
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:
parent
84e3dc03db
commit
1f41dbd256
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue