From 1514398c7189409b02f445c93755ef179c7c13d7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 Oct 2020 12:37:06 +0200 Subject: Fix another bug in worker upload logic --- bbot/worker/worker.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index 12e5fde..85b3265 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -1437,12 +1437,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 -- cgit v1.1