From ec3aba78b3bd5530e96eb0852ed2d9e71d2a55ae Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Thu, 14 Sep 2006 05:59:51 +0000 Subject: [PATCH] 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 --- mozilla/suite/browser/navigator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/suite/browser/navigator.js b/mozilla/suite/browser/navigator.js index 19a891798c3..eb8c94d228b 100644 --- a/mozilla/suite/browser/navigator.js +++ b/mozilla/suite/browser/navigator.js @@ -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; }