What I'm trying to do it manually shown an error after rescue. Or I'm fine if there is any alternative ways to do this thing
A given example of piece of code
begin some_error_coderescue do_something do_something thrown_original_error_noticeendSays that the error notice would be "Undefined method for nilclass"
But, before error notice is shown, I want to execute some lines of code at first.
Then I manually show the error message
Is there any way?
A given example of piece of code
begin some_error_coderescue do_something do_something thrown_original_error_noticeendSays that the error notice would be "Undefined method for nilclass"
But, before error notice is shown, I want to execute some lines of code at first.
Then I manually show the error message
Is there any way?