aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-12-17 09:17:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-12-17 09:17:38 +0200
commit911f505667eb8c8fd8b69d3f4b0969160eb1de55 (patch)
treed08d76e1c617308aa6baa3c2733a2ed9a7a30501
parent5de58425e88f274adeb2c552c00a2eafb170c84c (diff)
Convert to using operator<<(ostream,process_exit)
-rw-r--r--mod/mod-build-result.cxx18
1 files changed, 1 insertions, 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<uint16_t> (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).
//