Make sure reqhandler is not null / undefined #25
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
@ -104,6 +104,10 @@ fs.readFile('./misc/ascii.txt', function(err, data) {
|
||||||
} else {
|
} else {
|
||||||
// All required modules are found, start the framework's server.
|
// All required modules are found, start the framework's server.
|
||||||
global.modules.consoleHelper.printInfo(emoji.wave, "Starting Revolution...");
|
global.modules.consoleHelper.printInfo(emoji.wave, "Starting Revolution...");
|
||||||
|
if (reqhandler == null) {
|
||||||
|
global.modules.consoleHelper.printError(emoji.cross, "No request handler was loaded, possibly due to an error.");
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
frameworkServer();
|
frameworkServer();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue