diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-06-05 20:06:06 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-06-08 16:50:24 +0300 |
commit | 7fdc55efe423f58e5ce03e7f758ace6443800b7a (patch) | |
tree | abca1c7f4f9ebcf1fbc292ff76469f72ded6ee77 /libbuild2/script/script.cxx | |
parent | 10a4ed7c470d3fed8e2bb6b2089de68c61f9064b (diff) |
Cleanup script command failure diagnostics
Diffstat (limited to 'libbuild2/script/script.cxx')
-rw-r--r-- | libbuild2/script/script.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<uint16_t> (c.exit.code); + o << static_cast<uint16_t> (c.exit->code); } } |