Set variable to skip trap if error already handled

This commit is contained in:
William Wernert
2021-05-11 12:59:49 -04:00
parent f793450d97
commit c379822bf0
2 changed files with 2 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ check_err() {
local lineno=$2
local err_msg="Unhandled error occured, please check $SOUP_LOG for details."
[[ $ERR_HANDLED == true ]] && exit $exit_code
if [[ $exit_code -ne 0 ]]; then
printf '%s' "Soup failed on line $lineno with error $exit_code: "
case $exit_code in