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.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbuild2/script/script.hxx') 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 exit; }; enum class command_to_stream: uint16_t -- cgit v1.1