Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to see errors #5

Open
pcg79 opened this issue Jul 7, 2010 · 4 comments
Open

Unable to see errors #5

pcg79 opened this issue Jul 7, 2010 · 4 comments

Comments

@pcg79
Copy link

pcg79 commented Jul 7, 2010

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.

@bcurren
Copy link
Owner

bcurren commented Jul 18, 2010

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?

@pcg79
Copy link
Author

pcg79 commented Jul 19, 2010

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.

@dtirer
Copy link

dtirer commented Oct 19, 2015

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

@RajatGoyal
Copy link

Tried to fix the issue here #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants