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) {
callback("Private video", null);
return;
} else if(status === 400) {
callback("Invalid video", null);
return;
} else if(status === 503) {
callback("API failure", null);
return;
} else if(status !== 200) {
callback(true, null);
callback("HTTP " + status, null);
return;
}

View file

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