summaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2020-08-18 15:28:57 +0200
committerGitHub <noreply@github.com>2020-08-18 15:28:57 +0200
commitb084901fe3461f620667b488624a817f0cada335 (patch)
treec1bd3da82a67de5843d78904c995c39dfeb3ad55 /config-model
parentae1ee22b8ecca06745a685c528f1fe053a7588e2 (diff)
parent60c1ca4e76e6d9154686511ad0a765fd722d4e9f (diff)
Merge pull request #14077 from vespa-engine/bratseth/exceptions
Skip logging only for IllegalInputException
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/test/java/com/yahoo/searchdefinition/derived/NearestNeighborTestCase.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/derived/NearestNeighborTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/derived/NearestNeighborTestCase.java
index 9f57b22fd58..f6374677261 100644
--- a/config-model/src/test/java/com/yahoo/searchdefinition/derived/NearestNeighborTestCase.java
+++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/NearestNeighborTestCase.java
@@ -2,7 +2,6 @@
package com.yahoo.searchdefinition.derived;
import com.yahoo.component.ComponentId;
-import com.yahoo.prelude.query.QueryException;
import com.yahoo.search.Query;
import com.yahoo.search.query.profile.compiled.CompiledQueryProfileRegistry;
import com.yahoo.search.query.profile.config.QueryProfileConfigurer;
@@ -28,9 +27,9 @@ public class NearestNeighborTestCase extends AbstractExportingTestCase {
Query q = new Query("?ranking.features.query(q_vec)=[1,2,3,4,5,6]", // length is 6, not 5
queryProfiles.getComponent("default"));
fail("This should fail when q_vec is parsed as a tensor");
- } catch (QueryException e) {
+ } catch (IllegalArgumentException e) {
// success
- assertEquals("Invalid request parameter", e.getMessage());
+ assertEquals("Could not set 'ranking.features.query(q_vec)' to '[1,2,3,4,5,6]'", e.getMessage());
} catch (RuntimeException e) {
e.printStackTrace();
throw e;