diff options
author | Henning Baldersheim <balder@oath.com> | 2019-06-04 14:51:03 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2019-06-04 14:51:03 +0000 |
commit | 635faa9651793ff9a2296094e472c709d1ff0293 (patch) | |
tree | 5fa2141846e95d7ffe981cfba94cbda13e4178be /eval/src | |
parent | b1247e0d59091dbb132d10efff25461576db3832 (diff) |
Throw instead of silent abort.
Diffstat (limited to 'eval/src')
-rw-r--r-- | eval/src/vespa/eval/tensor/serialization/typed_binary_format.cpp | 2 |
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> |