Browse Source

100% test

main
pvincent 2 weeks ago
parent
commit
db0f0664d7
  1. 4
      poc

4
poc

@ -308,6 +308,10 @@ function on_exit {
miaou_debug "<return type=unexpected/>" miaou_debug "<return type=unexpected/>"
fi 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 elif [[ ! -v failure_type ]]; then
if [[ $code -gt 0 && ${#tmp_error[@]} -gt 0 ]]; then if [[ $code -gt 0 && ${#tmp_error[@]} -gt 0 ]]; then
last_error="${tmp_error[-1]}" last_error="${tmp_error[-1]}"

Loading…
Cancel
Save