Skip to content

Commit

Permalink
fixes #404
Browse files Browse the repository at this point in the history
removed premature check for module existence. httpserver is fine being
called with module id (i.e. no ".js" suffix) and will later on complain
anyway if the module doesn't exist.
  • Loading branch information
grob committed Sep 28, 2019
1 parent fcd925b commit 9b0af31
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/ringo/httpserver/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ exports.init = function(path) {
}

options.path = path;
if (options.path == undefined) {
if (options.path === undefined) {
if (args[0]) {
// take app module from command line
options.path = fs.resolve(fs.workingDirectory(), args[0]);
Expand All @@ -48,9 +48,6 @@ exports.init = function(path) {
if (fs.isDirectory(options.path)) {
options.path = fs.join(options.path, "main");
}
if (!fs.exists(options.path)) {
throw new Error("Module " + options.path + " does not exist");
}

log.info("Start app module at", options.path);

Expand Down

0 comments on commit 9b0af31

Please sign in to comment.