kevinprince/gocardless-ruby — comment on commit a6d7c8d56f5ef1b512600492b355e9c51ab45198
File: lib/gocardless/client.rb line 349
By timcraft:

The error message doesn't really make sense, would be better if it was a closer match to the condition e.g. "Access token should not contain the word bearer". Might also be better to move the check into the `#access_token=` method, so that the error is raised closer to where the fault really is (for easier debugging).