socketry / cloudflare

An asynchronous Ruby wrapper for the CloudFlare V4 API.
138 stars 86 forks source link

[Bug?] All exceptions are catched in the connection block #57

Open jamesst20 opened 4 years ago

jamesst20 commented 4 years ago

Hi,

It seems like all exceptions are being catched by the connection block :

Cloudflare.connect(token: cloudflare_token) do |connection|
        raise "Exception"
end

I would like my service to crash if anything fails or if the cloudflare authentication fail. Could this be fixed ? :)

ioquatix commented 4 years ago

Yes, this does seem like bad behaviour.