Fix some error messages, intialize announcement to null
This commit is contained in:
parent
54016f6f48
commit
54dee9e25d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -79,6 +79,7 @@ var Server = {
|
|||
db: null,
|
||||
ips: {},
|
||||
acp: null,
|
||||
announcement: null,
|
||||
httpaccess: null,
|
||||
actionlog: null,
|
||||
logHTTP: function (req, status) {
|
||||
|
|
Loading…
Reference in a new issue