From 7fdc55efe423f58e5ce03e7f758ace6443800b7a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 5 Jun 2020 20:06:06 +0300 Subject: Cleanup script command failure diagnostics --- libbuild2/script/script.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbuild2/script/script.cxx') diff --git a/libbuild2/script/script.cxx b/libbuild2/script/script.cxx index c9b3a5e..d0d3304 100644 --- a/libbuild2/script/script.cxx +++ b/libbuild2/script/script.cxx @@ -406,15 +406,15 @@ namespace build2 print_path (p.path); } - if (c.exit.comparison != exit_comparison::eq || c.exit.code != 0) + if (c.exit) { - switch (c.exit.comparison) + switch (c.exit->comparison) { case exit_comparison::eq: o << " == "; break; case exit_comparison::ne: o << " != "; break; } - o << static_cast (c.exit.code); + o << static_cast (c.exit->code); } } -- cgit v1.1