Skip to content

Commit

Permalink
[fix] throw if aws key or secret is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tellnes committed Sep 11, 2013
1 parent 78daaee commit 5604831
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.js
Expand Up @@ -127,6 +127,8 @@ function toUnixTime(time) {
}

function CloudFront(key, secret) {
if (!key || !secret) throw new Error('AWS key and secret is required')

this.key = key;
this.secret = secret;
}
Expand Down

0 comments on commit 5604831

Please sign in to comment.