Skip to content

Commit

Permalink
update trap in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Nov 2, 2023
1 parent 1aea667 commit 966def7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ write_warn() {
echo "[$_YELLOW WARN $_RESET] $1"
}

trap 'echo "An error occurred. Exiting..."; exit 1;' ERR
trap 'echo "Error on line $LINENO: Exit status of $?: $BASH_COMMAND";' ERR

printf "${_BOLD}${_MAGENTA}"
echo "+-------------------------------------+"
Expand Down

0 comments on commit 966def7

Please sign in to comment.