From 635faa9651793ff9a2296094e472c709d1ff0293 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 4 Jun 2019 14:51:03 +0000 Subject: Throw instead of silent abort. --- eval/src/vespa/eval/tensor/serialization/typed_binary_format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(eval::SimpleTensor::decode(stream)); } - abort(); + throw IllegalArgumentException(make_string("Received unknown tensor format type = %du.", formatId)); } template -- cgit v1.2.3