be more positive

This commit is contained in:
Ryan Buckley 2015-05-09 02:11:28 -07:00
parent f842b399d6
commit e3d6a3be65
1 changed files with 3 additions and 3 deletions

View File

@ -19,11 +19,11 @@ module Grape
@env = env
before
error = catch(:error) { @app_response = @app.call(@env); nil }
if error
if error.nil?
after(@app_response.first)
else
after_failure(error)
throw(:error, error)
else
after(@app_response.first)
end
@app_response
end