Release 0.1.7

This commit is contained in:
Dan
2014-07-27 12:10:58 -03:00
parent 976949d443
commit ba1ad544f9
3 changed files with 13 additions and 1 deletions

View File

@@ -40,6 +40,8 @@ MovieDB.prototype.requestToken = function(fn){
if(res.ok) self.token = res.body;
else throw res.error;
fn();
}).on('error', function(){
throw res.error;
});
return this;
@@ -91,4 +93,6 @@ var execMethod = function(type, params, endpoint, fn){
if(res.ok) fn(null, res.body);
else fn(res.error, null);
});
req.on('error', fn);
};