Skip to content

Commit d924f7f

Browse files
committed
fix: Don't use 'core.print_error' in 'core.panic'
This removes extra noise in the stack trace
1 parent 9d49281 commit d924f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/src/public/bash-core.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ core.panic() {
317317
if [ -n "$2" ]; then
318318
code=$2
319319
fi
320-
core.print_error "$1"
320+
printf '%s\n' "Panic: $1" >&2
321321
fi
322322

323323
if core.err_exists; then

0 commit comments

Comments
 (0)