From 911f505667eb8c8fd8b69d3f4b0969160eb1de55 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 17 Dec 2017 09:17:38 +0200 Subject: Convert to using operator<<(ostream,process_exit) --- mod/mod-build-result.cxx | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/mod/mod-build-result.cxx b/mod/mod-build-result.cxx index f93d2a0..795ae64 100644 --- a/mod/mod-build-result.cxx +++ b/mod/mod-build-result.cxx @@ -433,23 +433,7 @@ handle (request& rq, response&) sm.out.close (); if (!sm.wait ()) - { - diag_record dr (error); - dr << "sendmail "; - - assert (sm.exit); - const process_exit& e (*sm.exit); - - if (e.normal ()) - dr << "exited with code " << static_cast (e.code ()); - else - { - dr << "terminated abnormally: " << e.description (); - - if (e.core ()) - dr << " (core dumped)"; - } - } + error << "sendmail " << *sm.exit; } // Handle process_error and io_error (both derive from system_error). // -- cgit v1.1