improved miaou_debug on_error
This commit is contained in:
+3
-1
@@ -43,11 +43,13 @@ function fail_type {
|
||||
set -uo pipefail
|
||||
|
||||
assert success
|
||||
|
||||
fail_type subshell_term SUBSHELL_ERROR
|
||||
fail_type unbound_variable UNBOUND_VARIABLE
|
||||
fail_type unbound_associative UNBOUND_VARIABLE
|
||||
fail_type false FALSE
|
||||
fail_type return RETURN
|
||||
fail_type last_false COMMAND_ERROR
|
||||
fail_type subshell_term SUBSHELL_ERROR
|
||||
fail_type exit EXIT
|
||||
fail_type command_not_found COMMAND_NOT_FOUND
|
||||
# fail_type source_not_found SOURCE_NOT_FOUND
|
||||
|
||||
@@ -28,8 +28,9 @@ function do_subshell_term {
|
||||
# echo SHOULD NOT SHOW UP!
|
||||
}
|
||||
|
||||
# unable to catch up error when the last command is `!` statement
|
||||
function do_last_false {
|
||||
# FIXME: provides error detection
|
||||
echo 'last false'
|
||||
! true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user