Add note to config template, fix improper err callback

This commit is contained in:
calzoneman 2015-04-07 15:42:24 -05:00
parent 5522628363
commit 976228683b
2 changed files with 5 additions and 3 deletions

View file

@ -79,7 +79,7 @@ var Getters = {
var media = new Media(video.id, video.title, video.duration, "yt", meta);
callback(false, media);
}).catch(function (err) {
callback(err.message, null);
callback(err.message || err, null);
});
},
@ -101,7 +101,7 @@ var Getters = {
callback(null, videos);
}).catch(function (err) {
callback(err.message, null);
callback(err.message || err, null);
});
},
@ -126,7 +126,7 @@ var Getters = {
callback(null, videos);
}).catch(function (err) {
callback(err.message, null);
callback(err.message || err, null);
});
},