diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-10-15 12:55:03 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-10-15 12:55:03 +0000 |
commit | c11a1e22c2fa9f4ff43093fd3f661e196475d1ae (patch) | |
tree | c27635e0dc5da21b5f9eb60e1a9ffea1fe814d53 /searchcore | |
parent | d5658226bf02ba1d8438c8c0e889cdf5ae679264 (diff) |
handle more exceptions
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/requestcontext.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/requestcontext.cpp b/searchcore/src/vespa/searchcore/proton/matching/requestcontext.cpp index cf8a8d0da06..008fd5f2013 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/requestcontext.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/requestcontext.cpp @@ -54,12 +54,13 @@ RequestContext::get_query_tensor(const vespalib::string& tensor_name) const vespalib::nbostream stream(value.data(), value.size()); try { return EngineOrFactory::get().decode(stream); - } catch (vespalib::IllegalArgumentException& ex) { - LOG(warning, "Query tensor '%s' could not be deserialized", tensor_name.c_str()); - return vespalib::eval::Value::UP(); + } catch (vespalib::Exception& ex) { + LOG(warning, "Query tensor '%s' could not be deserialized: %s", + tensor_name.c_str(), ex.getMessage().c_str()); + return {}; } } - return vespalib::eval::Value::UP(); + return {}; } const search::attribute::AttributeBlueprintParams& |