Skip to content

Commit ee2efa7

Browse files
committed
improve logging when run commands fail
Signed-off-by: Zen <[email protected]>
1 parent 0a98017 commit ee2efa7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ugrd/generator_helpers.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010
from .exceptions import ValidationError
1111

12-
__version__ = "1.7.0"
13-
__author__ = "desultory"
14-
12+
__version__ = "1.7.1"
1513

1614
_RANDOM_BUILD_ID = str(uuid4())
1715

@@ -240,7 +238,7 @@ def print_err(ret) -> None:
240238
if not fail_silent:
241239
print_err(cmd) # Print the full error output if not failing silently
242240
if fail_hard: # Fail hard means raise an exception
243-
raise RuntimeError("Failed to run command: %s" % " ".join(cmd.args))
241+
raise RuntimeError("Failed to run command: %s" % c_(" ".join(cmd.args), "red", bright=True))
244242

245243
return cmd
246244

0 commit comments

Comments
 (0)