lib/ably/rest/middleware/external_exceptions.rb in ably-0.1.0 vs lib/ably/rest/middleware/external_exceptions.rb in ably-0.1.1
- old
+ new
@@ -11,12 +11,12 @@
if env[:status] >= 400
error_status_code = env[:status]
message = "Error #{error_status_code}: #{(env[:body] || '')[0...200]}"
if error_status_code >= 500
- raise Ably::ServerError, message
+ raise Ably::Exceptions::ServerError, message
else
- raise Ably::InvalidRequest, message
+ raise Ably::Exceptions::InvalidRequest, message
end
end
end
end
end