Skip to content
Browse files

Merge pull request #114 from Marsell/master

getProps() throws a TypeError if get() failed
  • Loading branch information...
2 parents 087e520 + 2b3e840 commit 042e74406376089c0fca7cb4800ff1ee9988daec Francisco Treacy committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/http_client.coffee
View
2 src/http_client.coffee
@@ -124,7 +124,7 @@ class HttpClient extends Client
getProps: (bucket, options...) ->
[options, callback] = @ensure options
@get bucket, undefined, options, (err, obj) ->
- callback(err, obj.props)
+ callback(err, obj?.props)
updateProps: (bucket, props, options...) ->
[options, callback] = @ensure options

0 comments on commit 042e744

Please sign in to comment.
Something went wrong with that request. Please try again.