From 966def7e116d0ecd8b13c5a2484c215cd5aae2a4 Mon Sep 17 00:00:00 2001 From: Jake Runzer Date: Thu, 2 Nov 2023 17:16:11 -0400 Subject: [PATCH] update trap in migration --- migrate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate.sh b/migrate.sh index 18f0901..3cc1336 100755 --- a/migrate.sh +++ b/migrate.sh @@ -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 "+-------------------------------------+"