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);
|
compiledWrapper = eval(code);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new Error( "Error evaluating module " + path
|
throw new Error( "Error evaluating module " + path
|
||||||
+ " at " + canonizedFilename + " line #" + e.lineNumber
|
+ " line #" + e.lineNumber
|
||||||
+ ". Error was: " + e.message, canonizedFilename, e.lineNumber );
|
+ " : " + e.message, canonizedFilename, e.lineNumber );
|
||||||
}
|
}
|
||||||
var __dirname = '' + file.parentFile.canonicalPath;
|
var __dirname = '' + file.parentFile.canonicalPath;
|
||||||
var parameters = [
|
var parameters = [
|
||||||
|
@ -262,8 +262,8 @@ When resolving module names to file paths, ScriptCraft uses the following rules.
|
||||||
parameters);
|
parameters);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new Error( "Error executing module " + path
|
throw new Error( "Error executing module " + path
|
||||||
+ " at " + canonizedFilename + " line #" + e.lineNumber
|
+ " line #" + e.lineNumber
|
||||||
+ ". Error was: " + e.message, canonizedFilename, e.lineNumber )
|
+ " : " + e.message, canonizedFilename, e.lineNumber )
|
||||||
}
|
}
|
||||||
if ( hooks ) {
|
if ( hooks ) {
|
||||||
hooks.loaded( canonizedFilename );
|
hooks.loaded( canonizedFilename );
|
||||||
|
|
Reference in a new issue