|
|
|
@ -308,6 +308,10 @@ function on_exit { |
|
|
|
miaou_debug "<return type=unexpected/>" |
|
|
|
fi |
|
|
|
|
|
|
|
elif [[ -v failure_type && "$failure_type" == 'COMMAND_NOT_FOUND' ]]; then |
|
|
|
unset 'tmp_error[-1]' 'tmp_error[-1]' |
|
|
|
add_miaou_error "${BASH_SOURCE[1]}" "${BASH_LINENO[0]}" "${failure_code}" "${failure_type}" "${failure_payload}" |
|
|
|
miaou_debug '<command_not_found change_stderr />' |
|
|
|
elif [[ ! -v failure_type ]]; then |
|
|
|
if [[ $code -gt 0 && ${#tmp_error[@]} -gt 0 ]]; then |
|
|
|
last_error="${tmp_error[-1]}" |
|
|
|
|