aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-08-15 13:45:40 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-08-15 13:45:40 +0000
commit7dd6b3c14864da5b7b75ae11de7ef7ec1442fe10 (patch)
treed908a1b6f707920a92b1473ff556e636c04b06cb /searchcore/src
parent58b471ce378f5d8604213f37b42aea53d1b6e49f (diff)
Add rank setup compile errors to error message.
Diffstat (limited to 'searchcore/src')
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/matcher.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp b/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp
index 826860b743e..a119b9e6377 100644
--- a/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp
+++ b/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp
@@ -32,10 +32,12 @@ using search::MatchingElements;
using search::attribute::IAttributeContext;
using search::fef::MatchDataLayout;
using search::fef::MatchData;
+using search::fef::RankSetup;
using search::fef::indexproperties::hitcollector::HeapSize;
using search::queryeval::Blueprint;
using search::queryeval::SearchIterator;
using vespalib::Doom;
+using vespalib::make_string_short::fmt;
namespace proton::matching {
@@ -117,7 +119,7 @@ Matcher::Matcher(const search::index::Schema &schema, const Properties &props, c
_rankSetup = std::make_shared<search::fef::RankSetup>(_blueprintFactory, _indexEnv);
_rankSetup->configure(); // reads config values from the property map
if (!_rankSetup->compile()) {
- throw vespalib::IllegalArgumentException("failed to compile rank setup", VESPA_STRLOC);
+ throw vespalib::IllegalArgumentException(fmt("failed to compile rank setup :\n%s", _rankSetup->getJoinedErrors().c_str()), VESPA_STRLOC);
}
}