We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 58c83a5 + 9506e29 commit 05b9c72Copy full SHA for 05b9c72
ash
@@ -202,6 +202,10 @@ Ash_dispatch() {
202
for part in "${segment[@]}"; do
203
if [[ "$position" -eq 1 ]]; then
204
Ash_load_callable_file "$part"
205
+ if [[ $? -ne 0 ]]; then
206
+ Logger__error "Module '$part' is unknown"
207
+ return
208
+ fi
209
Ash__import "$part" "1"
210
elif [[ "$position" -eq 2 ]]; then
211
Ash_execute_callable "$part" "${@:2}"
@@ -236,8 +240,7 @@ Ash_load_callable_file() {
236
240
# Updating Logger's prefix
237
241
Logger__set_prefix "$Ash_module_config_name"
238
242
else
239
- Logger__error "Module '$part' is unknown"
- exit
243
+ return 1
244
fi
245
}
246
0 commit comments