diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-12-17 09:13:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-12-17 09:13:12 +0200 |
commit | 4922e33ba25a7bb3f00e28ad7f5ae8754c403112 (patch) | |
tree | 6144e1aad2ae6d09d5b73c6ac1c772a04e9cef74 /bbot/utility.txx | |
parent | b5bcfa655986310f70755551b12fb259ad91d774 (diff) |
Convert to using operator<<(ostream,process_exit)
Diffstat (limited to 'bbot/utility.txx')
-rw-r--r-- | bbot/utility.txx | 5 |
1 files changed, 2 insertions, 3 deletions
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 <typename I, typename O, typename E, typename P, typename... A> |