diff options
author | Julien Desprez <jdesprez@google.com> | 2020-07-15 13:42:07 -0700 |
---|---|---|
committer | Yiming Pan <yimingpan@google.com> | 2020-08-28 11:49:08 -0700 |
commit | 81301e0c9f1dbf8a9d3acd5dad8f0b90d88eb1e4 (patch) | |
tree | 35deddf973e671c35daf0732cea60183f263824b | |
parent | ba3620c22c669696c54a625ed89954fada78bd20 (diff) | |
download | tradefederation-81301e0c9f1dbf8a9d3acd5dad8f0b90d88eb1e4.tar.gz |
In case of exception parsing error fallback to RuntimException
Test: unit tests
Bug: 161008653
Change-Id: Ic1a683efcc29e9e692e1ce714d28a4ba872bcbc8
-rw-r--r-- | src/com/android/tradefed/result/proto/ProtoResultParser.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/tradefed/result/proto/ProtoResultParser.java b/src/com/android/tradefed/result/proto/ProtoResultParser.java index a481cc941..6bda4dd4b 100644 --- a/src/com/android/tradefed/result/proto/ProtoResultParser.java +++ b/src/com/android/tradefed/result/proto/ProtoResultParser.java @@ -318,6 +318,7 @@ public class ProtoResultParser { } catch (IOException e) { CLog.e("Failed to deserialize the invocation exception:"); CLog.e(e); + failure.setCause(new RuntimeException(failure.getErrorMessage())); } } } |