Fix some error messages, intialize announcement to null

This commit is contained in:
calzoneman 2013-09-30 21:59:04 -05:00
parent 54016f6f48
commit 54dee9e25d
2 changed files with 5 additions and 1 deletions

View file

@ -82,11 +82,14 @@ module.exports = function (Server) {
} else if(status === 403) { } else if(status === 403) {
callback("Private video", null); callback("Private video", null);
return; return;
} else if(status === 400) {
callback("Invalid video", null);
return;
} else if(status === 503) { } else if(status === 503) {
callback("API failure", null); callback("API failure", null);
return; return;
} else if(status !== 200) { } else if(status !== 200) {
callback(true, null); callback("HTTP " + status, null);
return; return;
} }

View file

@ -79,6 +79,7 @@ var Server = {
db: null, db: null,
ips: {}, ips: {},
acp: null, acp: null,
announcement: null,
httpaccess: null, httpaccess: null,
actionlog: null, actionlog: null,
logHTTP: function (req, status) { logHTTP: function (req, status) {