diff --git a/poc b/poc index a817402..45f3473 100755 --- a/poc +++ b/poc @@ -308,6 +308,10 @@ function on_exit { miaou_debug "" 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 '' elif [[ ! -v failure_type ]]; then if [[ $code -gt 0 && ${#tmp_error[@]} -gt 0 ]]; then last_error="${tmp_error[-1]}"