qoobaa / s3

Library for accessing S3 objects and buckets, supports EU and US buckets
MIT License
258 stars 112 forks source link

Raise ArgumentError if required options are falsey #108

Closed lencioni closed 9 years ago

lencioni commented 9 years ago

I was occasionally seeing "no implicit conversion of nil into String (TypeError)" when calling buckets.find. This was happening all the way in the digest call in the Signature class because the secret_access_key had been set to nil. Since this value is set at initialization time, we can be proactive with a helpful error message when this happens.

Fixes #107

qoobaa commented 9 years ago

thank you