aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-10-05 12:37:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-10-27 15:49:45 +0200
commit5f02a68719ed772d27371bcb793f94e241b878f6 (patch)
treeadacff896d634dd392eb90546b58189efebfb18f
parent44992df53fd47e494453f247a358d9a2231dec73 (diff)
Fix another bug in worker upload logic
-rw-r--r--bbot/worker/worker.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx
index d7027f8..6edadcc 100644
--- a/bbot/worker/worker.cxx
+++ b/bbot/worker/worker.cxx
@@ -1390,12 +1390,17 @@ build (size_t argc, const char* argv[])
"--tftp-blksize", tftp_blksize,
"--max-time", tftp_put_timeout);
- serialize_manifest (rm, c.out, url, "result");
- c.out.close ();
+ manifest_serializer s (c.out, url);
+ rm.serialize (s);
+ c.out.close ();
if (!c.wait ())
throw_generic_error (EIO);
}
+ catch (const manifest_serialization& e)
+ {
+ fail << "invalid result manifest: " << e.description;
+ }
catch (const system_error& e)
{
// We use exit code 3 to signal an unsuccessful attempt to upload the