lib/fizzy/api/endpoints/render_graph_synchronous.rb in fizzy-api-0.1.1 vs lib/fizzy/api/endpoints/render_graph_synchronous.rb in fizzy-api-0.1.2
- old
+ new
@@ -16,9 +16,12 @@
private
def invalid_response(response)
case response.code
+ when 202
+ raise Errors::OutcomeNotAvailableError, select_measurement_text(response,
+ 'The results have not yet been calculated.')
when 204
raise Errors::TooFewMeasurementsError, select_measurement_text(response,
'Not enough measurements available.')
when 404
raise Errors::GraphNotFoundError, select_measurement_text(response,