Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Before block is run twice when an error occurs #818
When an exception occurs, the before blocks are run a second time before the error block is called. It's like the full request cycle is being invoked when an error occurs. This only seems to apply to exceptions. Calls to halt do not cause the error blocks to be re-run.
Is this the intended behavior, and if so, in what scenario is this behavior desirable?
Edit: I should add that I'm using 0.10.5 as I've got another issue open regarding a problem encountered while upgrading to 0.10.6.
Yes, you're right, it does happen like that and still happens in both 0.10.7 and edge. Same thing happens on Sinatra.
or jist it with
Will dig deeper and see what happens. Have a feeling it might be connected to #931.
The issue is related to #591