diff options
author | Lester Solbakken <lesters@oath.com> | 2022-04-20 15:29:55 +0200 |
---|---|---|
committer | Lester Solbakken <lesters@oath.com> | 2022-04-20 15:29:55 +0200 |
commit | 067579c6f48f2ea413ca61569782762362a8ef81 (patch) | |
tree | 0a485c655bca7840d8f7d8ac5c680ef2989c66e3 /config-model | |
parent | 9945db0d9dd4c101ff36c7ba1a56c758eaa27ecd (diff) |
Don't print stacktrace on vespa-analyze-onnx-model error
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java b/config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java index ba5ebdad56a..d2205fb64b3 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/ml/OnnxModelProbe.java @@ -50,7 +50,7 @@ public class OnnxModelProbe { } } catch (IllegalArgumentException | IOException | InterruptedException e) { - e.printStackTrace(System.err); + System.err.println(e.getMessage()); } return outputType; @@ -148,7 +148,8 @@ public class OnnxModelProbe { int returnCode = process.waitFor(); if (returnCode != 0) { - throw new IllegalArgumentException("Error from '" + binary + "'. Return code: " + returnCode + ". Output:\n" + output); + throw new IllegalArgumentException("Error from '" + binary + "'. Return code: " + returnCode + ". " + + "Output: '" + output + "'"); } return output.toString(); } |