lib/copy/request/validator.rb in copy-ruby-0.0.1 vs lib/copy/request/validator.rb in copy-ruby-0.0.2
- old
+ new
@@ -40,11 +40,11 @@
def handle_api_error(code, message)
error = case code
when 1021, 1024 then ObjectNotFound.new(message)
when 1300, 1303 then BadRequest.new(message)
+ when 2000 then AuthenticationError.new(message)
else
- binding.pry
APIError.new(message)
end
fail error
end
end