aboutsummaryrefslogtreecommitdiff
path: root/bbot/agent.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-08 15:57:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-08 15:57:06 +0200
commite6153b23d0824abdb324191e1622bfd4226dc38b (patch)
tree43745bf3a681fd5649ceab5ace4c7790efe7a429 /bbot/agent.cxx
parent7848221ece63119220464dcf1c5868db168effd2 (diff)
Soft-fail if result manifest is broken
Diffstat (limited to 'bbot/agent.cxx')
-rw-r--r--bbot/agent.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/bbot/agent.cxx b/bbot/agent.cxx
index 671f1c0..b2d09d1 100644
--- a/bbot/agent.cxx
+++ b/bbot/agent.cxx
@@ -691,7 +691,14 @@ try
// Parse the result manifest.
//
- r = parse_manifest<result_manifest> (rf, "result");
+ try
+ {
+ r = parse_manifest<result_manifest> (rf, "result", false);
+ }
+ catch (const failed&)
+ {
+ r.status = result_status::abnormal; // Soft-fail below.
+ }
// If the build terminated abnormally, suspent the machine for
// investigation (note that here we don't wait or return).