diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-02-06 15:05:05 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-02-06 15:05:05 +0100 |
commit | a23fc5e8d4e9ef0f737041f6d4f2ebc50b38c40b (patch) | |
tree | a22a9aec262a126aa3ecd3e60e93c8166004527d /searchlib | |
parent | 53041a25e69fbda934f8e7645ecf8220edfbea78 (diff) |
Type check all expressions
Diffstat (limited to 'searchlib')
-rwxr-xr-x | searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ReferenceNode.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ReferenceNode.java b/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ReferenceNode.java index 56914143e25..cd4eb21d1f2 100755 --- a/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ReferenceNode.java +++ b/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ReferenceNode.java @@ -110,7 +110,7 @@ public final class ReferenceNode extends CompositeNode { // Don't support outputs of different type, for simplicity TensorType type = context.getType(toString()); if (type == null) - throw new IllegalArgumentException("Could not determine type of feature " + toString()); + throw new IllegalArgumentException("Unknown feature '" + toString() + "'"); return type; } |