make faulty code a warning
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
838d43d74c
commit
fb0dafba5c
1 changed files with 2 additions and 2 deletions
|
@ -169,7 +169,7 @@ __cdist_echo()
|
|||
info)
|
||||
echo $__cdist_echo_prefix "$@"
|
||||
;;
|
||||
warning)
|
||||
warn)
|
||||
echo $__cdist_echo_prefix "Warning: $@"
|
||||
;;
|
||||
error)
|
||||
|
@ -188,7 +188,7 @@ __cdist_exec_fail_on_error()
|
|||
sh -e "$@"
|
||||
if [ "$?" -ne 0 ]; then
|
||||
__cdist_echo error "$1 exited non-zero"
|
||||
__cdist_echo info "Faulty code:"
|
||||
__cdist_echo warn "Faulty code:"
|
||||
cat "$1"
|
||||
__cdist_exit_err "Aborting due to non-zero exit code."
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue