aweber / AWeber-API-Ruby-Library

DEPRECATED - Ruby interface to AWeber's API.
http://www.aweber.com
BSD 3-Clause "New" or "Revised" License
25 stars 18 forks source link

`ArgumentError: bad value for range` raised for unauthorized calls #45

Open pjg opened 7 years ago

pjg commented 7 years ago

If my credentials are incorrect and I call:

AWeber::Base.new(oauth).client

It raises ArgumentError: bad value for range.

This should rather be captured in a nice error raised within the library.