No error or warning when given invalid file
Run iotjs with invalid file name, some random string. I think it should show some error or waring that file does not exist on invalid file. Currently it shows nothing. Test with 1777b853605852f27f6fca2eb61c2f2236241b11
This is not bug. remove bug tag, attach enhancement
in module.js
Module.load = function(id, parent, isMain) {
if(process.native_sources[id]){
return Native.require(id);
}
var module = new Module(id, parent);
var modPath = Module.resolveModPath(module.id, module.parent);
if(modPath) {
module.filename = modPath;
module.SetModuleDirs(modPath);
module.compile();
}
return module.exports;
};
in case of no file exisit, module.resolvemodPath() returns false and Module.load returned doing nothing. we can raise an exception here when modPath is false.
node.js throws Error in this case.
#86 resolved this issue.
Closing as #86 landed
We can report error after #87, before that just abort.