don't use error directly when logging to avoid dialog
authordadubrow
Fri, 06 Aug 2010 08:18:06 -0500
changeset 1782 cd82069687e4
parent 1780 e2992bb8a7f9
child 1783 6d8af00d456a
don't use error directly when logging to avoid dialog
core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/extension/AbstractBrowserPortalPageLayer.java
--- a/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/extension/AbstractBrowserPortalPageLayer.java	Thu Aug 05 15:31:11 2010 -0500
+++ b/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/extension/AbstractBrowserPortalPageLayer.java	Fri Aug 06 08:18:06 2010 -0500
@@ -18,6 +18,7 @@
 
 import java.net.MalformedURLException;
 import java.net.URL;
+import java.text.MessageFormat;
 import java.util.LinkedHashSet;
 import java.util.Set;
 
@@ -137,7 +138,8 @@
 		try {
 			browser = new Browser(composite, SWT.MOZILLA);
 		} catch (SWTError e) {
-			Activator.logError(Messages.AbstractBrowserPortalPageLayer_BrowserCreateError, e);
+			// don't log with SWTError as Throwable because it displays a dialog and this may occur and be benign
+			Activator.logError(MessageFormat.format(Messages.AbstractBrowserPortalPageLayer_BrowserCreateError, e.getMessage()), null);
 		}
 		
 		return composite;