lib/fizzy/api/calculate_outcome.rb in fizzy-api-0.0.3 vs lib/fizzy/api/calculate_outcome.rb in fizzy-api-0.0.4

- old
+ new

@@ -16,14 +16,14 @@ def process_response(response) case response.code when 200 response when 202 - fail Errors::OutcomeNotAvailableError, 'The results are currently being calculated.' + raise Errors::OutcomeNotAvailableError, 'The results are currently being calculated.' when 404 - fail Errors::GraphNotFoundError, 'Participant not found, or graph not supported.' + raise Errors::GraphNotFoundError, 'Participant not found, or graph not supported.' else - fail Errors::UnexpectedStatusError, "Status code #{response.code} not expected." + raise Errors::UnexpectedStatusError, "Status code #{response.code} not expected." end end end end end