diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-10-01 12:52:30 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-10-01 12:52:30 +0200 |
commit | d410a107a048070d07afc199a12dff85bdea139e (patch) | |
tree | e26f33065ebfb612a8c83d840de5661523590d1d /vespajlib | |
parent | 50bc3b3c198d29374448cc3eac73fbb26e42cab0 (diff) |
Validate all bindings
Diffstat (limited to 'vespajlib')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/tensor/TensorParser.java | 2 |
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(); } } |