From f3ffef62fa5079a19cb3347837521495bdbe79c4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 26 Apr 2017 16:00:48 +0200 Subject: Cleanup error messages --- build2/test/rule.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/test/rule.cxx') diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index 7148fc0b..91a6806d 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -636,18 +636,18 @@ namespace build2 if (!pe.normal ()) { - dr << error << "terminated abnormally: "; + dr << error; print_process (dr, args); + dr << " terminated abnormally: " << pe.description (); - dr << info << pe.description (); if (pe.core ()) dr << " (core dumped)"; } else { - dr << error << "exit status " << static_cast (pe.code ()) - << ": "; + dr << error; print_process (dr, args); + dr << " exited with code " << static_cast (pe.code ()); } } -- cgit