improved miaou_debug on_error

This commit is contained in:
pvincent
2026-07-29 11:00:20 +04:00
parent dbf067825c
commit 06042ac1f0
3 changed files with 14 additions and 9 deletions
+3 -1
View File
@@ -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
+2 -1
View File
@@ -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
}