From 4922e33ba25a7bb3f00e28ad7f5ae8754c403112 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 17 Dec 2017 09:13:12 +0200 Subject: Convert to using operator<<(ostream,process_exit) --- bbot/utility.txx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bbot/utility.txx') diff --git a/bbot/utility.txx b/bbot/utility.txx index edfc3a7..5ac8995 100644 --- a/bbot/utility.txx +++ b/bbot/utility.txx @@ -52,8 +52,7 @@ namespace bbot const process_exit& e (*pr.exit); if (!e.normal ()) - fail (fh) << "process " << p << " terminated abnormally: " - << e.description () << (e.core () ? " (core dumped)" : ""); + fail (fh) << "process " << p << " " << e; return e.code (); } @@ -68,7 +67,7 @@ namespace bbot run_io_finish (tracer& t, process& pr, const P& p, bool fh) { if (run_io_finish_exit (t, pr, p, fh) != 0) - fail (fh) << "process " << p << " terminated with non-zero exit code"; + fail (fh) << "process " << p << " exited with non-zero code"; } template -- cgit v1.1