Update app.js

This commit is contained in:
Namhyeon Go 2021-08-10 15:35:32 +09:00
parent 736955fe35
commit d74dd7e489

6
app.js
View File

@ -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");