show ascii art on error

This commit is contained in:
einhornimmond 2025-05-08 11:54:39 +02:00
parent 8cdbf6b039
commit b787279a88

View File

@ -159,7 +159,16 @@ log_success() {
}
onError() {
log_error "Error: $1"
local exit_code=$?
log_error ""
log_error " /> フ"
log_error " | _ _| Aaaaah!"
log_error " /\` ミ_x Command failed!"
log_error " /     | Line: $LINENO"
log_error "/  ヽ   ノ Exit Code: $exit_code"
log_error "| | | | Offending command: '$BASH_COMMAND'"
log_error "_。_。_。。。。。。。。。。。。"
log_error ""
cleanup
exit 1
}