summaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2019-06-04 14:51:03 +0000
committerHenning Baldersheim <balder@oath.com>2019-06-04 14:51:03 +0000
commit635faa9651793ff9a2296094e472c709d1ff0293 (patch)
tree5fa2141846e95d7ffe981cfba94cbda13e4178be /eval
parentb1247e0d59091dbb132d10efff25461576db3832 (diff)
Throw instead of silent abort.
Diffstat (limited to 'eval')
-rw-r--r--eval/src/vespa/eval/tensor/serialization/typed_binary_format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval/src/vespa/eval/tensor/serialization/typed_binary_format.cpp b/eval/src/vespa/eval/tensor/serialization/typed_binary_format.cpp
index d452203fe3f..4437f4e0e2f 100644
--- a/eval/src/vespa/eval/tensor/serialization/typed_binary_format.cpp
+++ b/eval/src/vespa/eval/tensor/serialization/typed_binary_format.cpp
@@ -99,7 +99,7 @@ TypedBinaryFormat::deserialize(nbostream &stream)
stream.adjustReadPos(read_pos - stream.rp());
return std::make_unique<WrappedSimpleTensor>(eval::SimpleTensor::decode(stream));
}
- abort();
+ throw IllegalArgumentException(make_string("Received unknown tensor format type = %du.", formatId));
}
template <typename T>