Replace "Error creating browser instance" with more helpful debug messages.

git-svn-id: svn://10.0.0.236/trunk@210895 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jaggernaut%netscape.com
2006-09-14 05:59:51 +00:00
parent a97d6464f7
commit ec3aba78b3

View File

@@ -273,13 +273,13 @@ function Startup()
appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"]
.createInstance(Components.interfaces.nsIBrowserInstance);
if (!appCore)
throw Components.results.NS_ERROR_FAILURE;
throw "couldn't create a browser instance";
webNavigation = getWebNavigation();
if (!webNavigation)
throw Components.results.NS_ERROR_FAILURE;
throw "no XBL binding for browser";
} catch (e) {
alert("Error creating browser instance");
alert("Error launching browser window:" + e);
window.close(); // Give up.
return;
}