File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,6 @@ __bake_main() {
311
311
__bake_internal_die ' Failed to shift'
312
312
fi
313
313
314
- # shellcheck disable=SC1007
315
314
local __bake_key= __bake_value=
316
315
local __bake_arg=
317
316
for __bake_arg; do case $__bake_arg in
Original file line number Diff line number Diff line change @@ -133,12 +133,12 @@ Prints stacktrace
133
133
#### Example
134
134
135
135
``` bash
136
- core.trap_add ' err_handler' EXIT
137
136
err_handler () {
138
137
local exit_code=$?
139
138
core.stacktrace_print
140
- exit $?
139
+ exit $exit_code
141
140
}
141
+ core.trap_add ' err_handler' EXIT
142
142
```
143
143
144
144
_ Function has no arguments._
Original file line number Diff line number Diff line change @@ -246,12 +246,12 @@ core.err_exists() {
246
246
# @description Prints stacktrace
247
247
# @noargs
248
248
# @example
249
- # core.trap_add 'err_handler' EXIT
250
249
# err_handler() {
251
250
# local exit_code=$?
252
251
# core.stacktrace_print
253
- # exit $?
252
+ # exit $exit_code
254
253
# }
254
+ # core.trap_add 'err_handler' EXIT
255
255
core.stacktrace_print () {
256
256
printf ' %s\n' ' Stacktrace:'
257
257
You can’t perform that action at this time.
0 commit comments