Parameters:
11 12 13 14 15 16
# File 'lib/bitrise/client/middleware/error_handler.rb', line 11 def on_complete(response) case response.status when 400..599 raise Bitrise::Error.new(JSON.parse(response.body)['message']) end end