mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +02:00
* ServerModule's createServer() is now async
* Re-write of NNTP Message-ID <> internal message UUIDs
This commit is contained in:
parent
346815a4f2
commit
9d1815682d
11 changed files with 305 additions and 84 deletions
|
@ -93,8 +93,15 @@ function loadModulesForCategory(category, iterator, complete) {
|
|||
|
||||
async.each(jsModules, (file, next) => {
|
||||
loadModule(paths.basename(file, '.js'), category, (err, mod) => {
|
||||
iterator(err, mod);
|
||||
return next();
|
||||
if(err) {
|
||||
if(ErrorReasons.Disabled === err.reasonCode) {
|
||||
Log.debug(err.message);
|
||||
} else {
|
||||
Log.info( { err : err }, 'Failed loading module');
|
||||
}
|
||||
return next(null); // continue no matter what
|
||||
}
|
||||
return iterator(mod, next);
|
||||
});
|
||||
}, err => {
|
||||
if(complete) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue