From 848b62a219b23cd9934f7af858d751a94a875ffc Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 13 Nov 2019 16:46:33 +0100 Subject: [PATCH] show index type in not implemented exception (#10426) --- arangod/Indexes/Index.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arangod/Indexes/Index.cpp b/arangod/Indexes/Index.cpp index 3ef1603e49..be1d9134b2 100644 --- a/arangod/Indexes/Index.cpp +++ b/arangod/Indexes/Index.cpp @@ -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 Index::iteratorForCondition(transaction::Methods* /* trx */, @@ -697,7 +697,7 @@ std::unique_ptr 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