mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
on console and html
This commit is contained in:
parent
de6fef306f
commit
b4dd83b307
@ -160,11 +160,11 @@ log_success() {
|
|||||||
|
|
||||||
onError() {
|
onError() {
|
||||||
local exit_code=$?
|
local exit_code=$?
|
||||||
echo -e "\e[31m Command failed!\e[0m"
|
log_error "Command failed!"
|
||||||
echo -e "\e[31m /\\_/\\ Line: $LINENO\e[0m"
|
log_error " /\\_/\\ Line: $LINENO"
|
||||||
echo -e "\e[31m( o.o ) Exit Code: $exit_code\e[0m"
|
log_error "( o.o ) Exit Code: $exit_code"
|
||||||
echo -e "\e[31m > ^ < Offending command: '$BASH_COMMAND'\e[0m"
|
log_error " > ^ < Offending command: '$BASH_COMMAND'"
|
||||||
echo -e "\e[31m\e[0m"
|
log_error "\e[31m\e[0m"
|
||||||
cleanup
|
cleanup
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user