You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
def dispatch!
static! if settings.static? && (request.get? || request.head?)
route!
rescue ::Exception => boom
filter! :before #here is the second call for filters
handle_exception!(boom)
ensure
filter! :after unless env['sinatra.static_file']
end
ujifgc
added a commit
to ujifgc/padrino-framework
that referenced
this issue
Jan 10, 2013
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.
The text was updated successfully, but these errors were encountered: