bcurren/freshbooks.rb

Unable to see errors

pcg79 opened this issue · 4 comments

This might be ignorance on my part but when a call fails it seems all that's returned is true or false. I don't see a way to retrieve the error that was returned from FreshBooks.

Looks like you are correct. It looks like list actions return an error but the other actions just return a boolean. When I refactored the code I kept the interface the same. Seems like there needs to be a way to get to this info. Any ideas?

I hadn't thought too hard on it (as of now it's not needed - knock on wood) but my expectations were along the lines of Rails' "errors" object. Since the freshbooks.rb gem doesn't require an instance (the connection is created globally) maybe a call to something like Freshbooks::Base.errors.

I'd love to give it a shot and send you a pull request but right now time is at a premium. If you don't get to it, I will try to.

was this ever implemented? I seem to receive a boolean on actions besides 'list' as well

Tried to fix the issue here #26