diff options
-rw-r--r-- | bbot/worker/worker.cxx | 9 |
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 |