@@ -10,9 +10,6 @@ Core functions for any Bash program
10
10
* [ core.trap_remove] ( #coretrap_remove )
11
11
* [ core.shopt_push] ( #coreshopt_push )
12
12
* [ core.shopt_pop] ( #coreshopt_pop )
13
- * [ core.err_set] ( #coreerr_set )
14
- * [ core.err_clear] ( #coreerr_clear )
15
- * [ core.err_exists] ( #coreerr_exists )
16
13
* [ core.panic] ( #corepanic )
17
14
* [ core.print_stacktrace] ( #coreprint_stacktrace )
18
15
* [ core.print_fatal_fn] ( #coreprint_fatal_fn )
@@ -25,6 +22,9 @@ Core functions for any Bash program
25
22
* [ core.print_warn] ( #coreprint_warn )
26
23
* [ core.print_info] ( #coreprint_info )
27
24
* [ core.print_debug] ( #coreprint_debug )
25
+ * [ core.err_set] ( #coreerr_set )
26
+ * [ core.err_clear] ( #coreerr_clear )
27
+ * [ core.err_exists] ( #coreerr_exists )
28
28
* [ core.should_output_color] ( #coreshould_output_color )
29
29
* [ core.get_package_info] ( #coreget_package_info )
30
30
* [ core.init] ( #coreinit )
@@ -104,39 +104,6 @@ core.shopt_pop
104
104
105
105
_ Function has no arguments._
106
106
107
- ### core.err_set
108
-
109
- Sets an error.
110
-
111
- #### Arguments
112
-
113
- * ** $1** (Error): code
114
- * ** $2** (Error): message
115
-
116
- #### Variables set
117
-
118
- * ** number** (ERRCODE): Error code
119
- * ** string** (ERR): Error message
120
-
121
- ### core.err_clear
122
-
123
- Clears any of the global error state (sets to empty string).
124
- This means any ` core.err_exists ` calls after this _ will_ ` return 1 `
125
-
126
- _ Function has no arguments._
127
-
128
- #### Variables set
129
-
130
- * ** number** (ERRCODE): Error code
131
- * ** string** (ERR): Error message
132
-
133
- ### core.err_exists
134
-
135
- Checks if an error exists. If ` ERR ` is not empty, then an error
136
- _ does_ exist
137
-
138
- _ Function has no arguments._
139
-
140
107
### core.panic
141
108
142
109
Use when a serious fault occurs. It will print the current ERR (if it exists)
@@ -245,6 +212,39 @@ Print a debug message to standard output if the environment variable "DEBUG" is
245
212
246
213
* ** $1** (string): message
247
214
215
+ ### core.err_set
216
+
217
+ (DEPRECATED) Sets an error.
218
+
219
+ #### Arguments
220
+
221
+ * ** $1** (Error): code
222
+ * ** $2** (Error): message
223
+
224
+ #### Variables set
225
+
226
+ * ** number** (ERRCODE): Error code
227
+ * ** string** (ERR): Error message
228
+
229
+ ### core.err_clear
230
+
231
+ (DEPRECATED) Clears any of the global error state (sets to empty string).
232
+ This means any ` core.err_exists ` calls after this _ will_ ` return 1 `
233
+
234
+ _ Function has no arguments._
235
+
236
+ #### Variables set
237
+
238
+ * ** number** (ERRCODE): Error code
239
+ * ** string** (ERR): Error message
240
+
241
+ ### core.err_exists
242
+
243
+ (DEPRECATED) Checks if an error exists. If ` ERR ` is not empty, then an error
244
+ _ does_ exist
245
+
246
+ _ Function has no arguments._
247
+
248
248
### core.should_output_color
249
249
250
250
(DEPRECATED). Determine if color should be printed. Note that this doesn't
0 commit comments