mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 977043 - Improve error reporting when an actor fails loading r=past
This commit is contained in:
parent
f25375066a
commit
3505c5566b
@ -49,7 +49,9 @@ function loadSubScript(aURL)
|
||||
.getService(Ci.mozIJSSubScriptLoader);
|
||||
loader.loadSubScript(aURL, this);
|
||||
} catch(e) {
|
||||
let errorStr = "Error loading: " + aURL + ": " + e + " - " + e.stack + "\n";
|
||||
let errorStr = "Error loading: " + aURL + ":\n" +
|
||||
(e.fileName ? "at " + e.fileName + " : " + e.lineNumber + "\n" : "") +
|
||||
e + " - " + e.stack + "\n";
|
||||
dump(errorStr);
|
||||
Cu.reportError(errorStr);
|
||||
throw e;
|
||||
|
Loading…
Reference in New Issue
Block a user