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:
bbaetz%cs.mcgill.ca 2001-06-28 03:35:05 +00:00
parent 6587a3431e
commit 47e4feb198

View File

@ -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);