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 2006-09-14 05:57:44 +00:00
parent 7a09c4f448
commit fbdbe98f93

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