aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/script/script.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-06-05 20:06:06 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-06-08 16:50:24 +0300
commit7fdc55efe423f58e5ce03e7f758ace6443800b7a (patch)
treeabca1c7f4f9ebcf1fbc292ff76469f72ded6ee77 /libbuild2/script/script.hxx
parent10a4ed7c470d3fed8e2bb6b2089de68c61f9064b (diff)
Cleanup script command failure diagnostics
Diffstat (limited to 'libbuild2/script/script.hxx')
-rw-r--r--libbuild2/script/script.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/script/script.hxx b/libbuild2/script/script.hxx
index 31527a0..d751169 100644
--- a/libbuild2/script/script.hxx
+++ b/libbuild2/script/script.hxx
@@ -314,7 +314,9 @@ namespace build2
script::cleanups cleanups;
- command_exit exit {exit_comparison::eq, 0};
+ // If nullopt, then the command is expected to succeed (0 exit code).
+ //
+ optional<command_exit> exit;
};
enum class command_to_stream: uint16_t