mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-26 18:31:29 +00:00
Bug 57411 - "error loading url" message should print out macro name where
available. (We only do this on debug builds) r=jag, sr=ben
This commit is contained in:
parent
6587a3431e
commit
47e4feb198
@ -284,8 +284,16 @@ nsBrowserStatusHandler.prototype =
|
||||
|
||||
if (Components.isSuccessCode(aStatus))
|
||||
dump("Document "+urlStr+" loaded successfully\n"); // per QA request
|
||||
else
|
||||
dump("Error loading URL "+urlStr+" : "+aStatus+"\n"); // per QA request
|
||||
else {
|
||||
// per QA request
|
||||
var e = new Components.Exception("", aStatus);
|
||||
var name = e.name;
|
||||
dump("Error loading URL "+urlStr+" : "+
|
||||
Number(aStatus).toString(16));
|
||||
if (name)
|
||||
dump(" ("+name+")");
|
||||
dump('\n');
|
||||
}
|
||||
|
||||
var observerService = Components.classes["@mozilla.org/observer-service;1"]
|
||||
.getService(Components.interfaces.nsIObserverService);
|
||||
|
Loading…
Reference in New Issue
Block a user