mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +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
7a09c4f448
commit
fbdbe98f93
@ -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