Skip to content

Commit 64d0662

Browse files
committed
fix: Error printf properly shows function that called it
1 parent f635a19 commit 64d0662

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/src/public/bash-core.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,12 @@ core.err_set() {
231231
ERRCODE=$1
232232
ERR=$2
233233
else
234-
printf '%s\n' "Error: bash-error: Incorrect function arguments"
234+
printf '%s\n' "Error: core.err_set: Incorrect function arguments"
235235
return 1
236236
fi
237237

238238
if [ -z "$ERR" ]; then
239-
printf '%s\n' "Error: bash-error: Argument for 'ERR' cannot be empty"
239+
printf '%s\n' "Error: core.err_set: Argument for 'ERR' cannot be empty"
240240
return 1
241241
fi
242242
}
@@ -298,7 +298,7 @@ core.stacktrace_print() {
298298
done; unset -v i
299299

300300
if [ "$cd_failed" = 'yes' ]; then
301-
printf '%s\n' "Error: bash-error: A 'cd' failed, so the stacktrace may include relative paths"
301+
printf '%s\n' "Error: core.stacktrace_print: A 'cd' failed, so the stacktrace may include relative paths"
302302
fi
303303
} >&2
304304

0 commit comments

Comments
 (0)