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) {
|
} 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue