Fix #332; add more helpful errors
This commit is contained in:
parent
5e152c8310
commit
e841196570
|
@ -872,7 +872,7 @@ Channel.prototype.handleBanAllIP = function (actor, name, reason, range) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ips.forEach(function (ip) {
|
ips.forEach(function (ip) {
|
||||||
self.banIP(actor, ip, name, range);
|
self.banIP(actor, ip, name, reason, range);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -115,6 +115,7 @@ exports.load = function (file) {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
Logger.errlog.log("Error loading config file " + file + ": ");
|
Logger.errlog.log("Error loading config file " + file + ": ");
|
||||||
|
Logger.errlog.log(e);
|
||||||
if (e.stack) {
|
if (e.stack) {
|
||||||
Logger.errlog.log(e.stack);
|
Logger.errlog.log(e.stack);
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ module.exports.init = function () {
|
||||||
pool.getConnection(function (err, conn) {
|
pool.getConnection(function (err, conn) {
|
||||||
if(err) {
|
if(err) {
|
||||||
Logger.errlog.log("! DB connection failed");
|
Logger.errlog.log("! DB connection failed");
|
||||||
|
Logger.errlog.log(err);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
tables.init(module.exports.query, function (err) {
|
tables.init(module.exports.query, function (err) {
|
||||||
|
|
Loading…
Reference in a new issue