File tree 4 files changed +8
-15
lines changed
4 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,6 @@ It can look redundant (compared to `if ! fn; then :; fi`) to define error functi
27
27
- ` core.err_set `
28
28
- ` core.err_clear `
29
29
- ` core.err_exists `
30
- - ` core.err_print `
31
- - ` core.err_print ` (TODO: Make this internal)
32
30
33
31
### ` print `
34
32
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ Core functions for any Bash program
13
13
* [ core.err_set()] ( #coreerr_set )
14
14
* [ core.err_clear()] ( #coreerr_clear )
15
15
* [ core.err_exists()] ( #coreerr_exists )
16
- * [ core.err_print()] ( #coreerr_print )
17
16
* [ core.print_stacktrace()] ( #coreprint_stacktrace )
18
17
* [ core.print_error()] ( #coreprint_error )
19
18
* [ core.print_warn()] ( #coreprint_warn )
@@ -128,10 +127,6 @@ _does_ exist
128
127
129
128
_ Function has no arguments._
130
129
131
- ### core.err_print()
132
-
133
- Prints the current error stored
134
-
135
130
### core.print_stacktrace()
136
131
137
132
Prints stacktrace
Original file line number Diff line number Diff line change @@ -241,13 +241,6 @@ core.err_exists() {
241
241
fi
242
242
}
243
243
244
- # @description Prints the current error stored
245
- core.err_print () {
246
- printf ' %s\n' ' Error found:'
247
- printf ' %s\n' " ERRCODE: $ERRCODE " >&2
248
- printf ' %s\n' " ERR: $ERR " >&2
249
- }
250
-
251
244
# @description Prints stacktrace
252
245
# @noargs
253
246
# @example
@@ -330,7 +323,7 @@ core.panic() {
330
323
if core.err_exists; then
331
324
core.err_print
332
325
fi
333
- core.print_stacktrace
326
+ core.util.err_print
334
327
exit " $code "
335
328
}
336
329
Original file line number Diff line number Diff line change @@ -31,3 +31,10 @@ core.util.trap_handler_common() {
31
31
fi
32
32
done ; unset trap_func
33
33
}
34
+
35
+ # @description Prints the current error stored
36
+ core.util.err_print () {
37
+ printf ' %s\n' ' Error found:'
38
+ printf ' %s\n' " ERRCODE: $ERRCODE " >&2
39
+ printf ' %s\n' " ERR: $ERR " >&2
40
+ }
You can’t perform that action at this time.
0 commit comments