Add on_error_default decorator