Cannot set `:raise_errors => false` in a request when client has it set to `true` #80

rewritten opened this Issue Nov 24, 2011 · 2 comments


None yet

4 participants


If the client is set to :raise_errors => true, then specific requests cannot override that value.

Use case: GoogleDocs API normally just returns data, but in some cases (e.g. resumable upload protocol) I need to access the exact error to know what to do next.

raise e if opts[:raise_errors] || options[:raise_errors]

should be:

raise e if opts.fetch(:raise_errors, options[:raise_errors])


raise e if opts.has_key?(:raise_errors) ? opts[:raise_errors] : options[:raise_errors])

so it does not fallback with a false value.


I wanted to know what error I got from Google as well, so I monkeypatched it to raise errors regardless.

raise e #if opts[:raise_errors] || options[:raise_errors]

Not ideal, but it helped greatly.


What's the status on this? Seems like a decent issue.

@sferik sferik closed this Apr 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment