summaryrefslogtreecommitdiffstats
path: root/vespajlib
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-10-01 12:52:30 +0200
committerJon Bratseth <bratseth@oath.com>2018-10-01 12:52:30 +0200
commitd410a107a048070d07afc199a12dff85bdea139e (patch)
treee26f33065ebfb612a8c83d840de5661523590d1d /vespajlib
parent50bc3b3c198d29374448cc3eac73fbb26e42cab0 (diff)
Validate all bindings
Diffstat (limited to 'vespajlib')
-rw-r--r--vespajlib/src/main/java/com/yahoo/tensor/TensorParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/TensorParser.java b/vespajlib/src/main/java/com/yahoo/tensor/TensorParser.java
index a1334dc729c..000f33696f2 100644
--- a/vespajlib/src/main/java/com/yahoo/tensor/TensorParser.java
+++ b/vespajlib/src/main/java/com/yahoo/tensor/TensorParser.java
@@ -27,7 +27,7 @@ class TensorParser {
else {
if (type.isPresent() && ! type.get().equals(TensorType.empty))
throw new IllegalArgumentException("Got zero-dimensional tensor '" + tensorString +
- "but type is not empty but " + type.get());
+ "' where type " + type.get() + " is required");
return Tensor.Builder.of(TensorType.empty).cell(Double.parseDouble(tensorString)).build();
}
}