Skip to content

Commit

Permalink
Merge pull request mostlyserious#114 from Marsell/master
Browse files Browse the repository at this point in the history
getProps() throws a TypeError if get() failed
  • Loading branch information
Francisco Treacy committed Feb 24, 2012
2 parents 087e520 + 2b3e840 commit 042e744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http_client.coffee
Expand Up @@ -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
Expand Down

0 comments on commit 042e744

Please sign in to comment.