be more positive
This commit is contained in:
		
							parent
							
								
									f842b399d6
								
							
						
					
					
						commit
						e3d6a3be65
					
				|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue