mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-13 21:21:03 +00:00
Update app.js
This commit is contained in:
parent
736955fe35
commit
d74dd7e489
6
app.js
6
app.js
|
@ -251,9 +251,9 @@ function initializeConsole() {
|
||||||
var app = require(name);
|
var app = require(name);
|
||||||
if (app) {
|
if (app) {
|
||||||
if (app.main) {
|
if (app.main) {
|
||||||
var exitstatus = app.main.call(this, args);
|
var exitStatus = app.main.call(this, args);
|
||||||
if (typeof(exitstatus) !== "undefined") {
|
if (typeof(exitStatus) !== "undefined") {
|
||||||
exit(exitstatus);
|
exit(exitStatus);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.error("Error, missing main entry point in", name + ".js");
|
console.error("Error, missing main entry point in", name + ".js");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user