Make error messages more concise (don't repeat file name)
This commit is contained in:
parent
a18e9651e8
commit
fce28567e6
1 changed files with 4 additions and 4 deletions
|
@ -245,8 +245,8 @@ When resolving module names to file paths, ScriptCraft uses the following rules.
|
|||
compiledWrapper = eval(code);
|
||||
} catch (e) {
|
||||
throw new Error( "Error evaluating module " + path
|
||||
+ " at " + canonizedFilename + " line #" + e.lineNumber
|
||||
+ ". Error was: " + e.message, canonizedFilename, e.lineNumber );
|
||||
+ " line #" + e.lineNumber
|
||||
+ " : " + e.message, canonizedFilename, e.lineNumber );
|
||||
}
|
||||
var __dirname = '' + file.parentFile.canonicalPath;
|
||||
var parameters = [
|
||||
|
@ -262,8 +262,8 @@ When resolving module names to file paths, ScriptCraft uses the following rules.
|
|||
parameters);
|
||||
} catch (e) {
|
||||
throw new Error( "Error executing module " + path
|
||||
+ " at " + canonizedFilename + " line #" + e.lineNumber
|
||||
+ ". Error was: " + e.message, canonizedFilename, e.lineNumber )
|
||||
+ " line #" + e.lineNumber
|
||||
+ " : " + e.message, canonizedFilename, e.lineNumber )
|
||||
}
|
||||
if ( hooks ) {
|
||||
hooks.loaded( canonizedFilename );
|
||||
|
|
Reference in a new issue