Skip to content
Browse files

Merge branch 'master' of github.com:Singly/hallway

  • Loading branch information...
2 parents 3dbba7c + 6ccb99a commit 310896c4efec20123844913cf255ae592d1f7ae5 @quartzjer quartzjer committed Oct 13, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/services/rdio/lib.js
View
1 lib/services/rdio/lib.js
@@ -14,6 +14,7 @@ function api(auth, params, cb) {
};
request.post(options, function(err, resp, body) {
if (err) return cb(err);
+ if (!resp) return cb(new Error('No response from rdio'));
if (resp.statusCode !== 200) return cb(new Error(resp.statusCode + ' status code from rdio:' + body));
cb(err, body);
});

0 comments on commit 310896c

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