note exit on error at end of log for clarity
This commit is contained in:
parent
57b13a3844
commit
ba27cff791
@ -83,6 +83,9 @@ exitError () {
|
|||||||
printf "${err}[%s] -- [ERROR] %s: %s --${norm}\n" \
|
printf "${err}[%s] -- [ERROR] %s: %s --${norm}\n" \
|
||||||
"$(stamp)" "$1" "$2" >> "$logFile"
|
"$(stamp)" "$1" "$2" >> "$logFile"
|
||||||
cleanup
|
cleanup
|
||||||
|
# note script completion with error
|
||||||
|
printf "${err}[%s] --- %s execution completed with error ---${norm}\n" \
|
||||||
|
"$(stamp)" "$scriptName" >> "$logFile"
|
||||||
exit "$1"
|
exit "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user