made error for browser configuration on unix a bit easier to see.
authorjprocter <Jim Procter>
Sun, 5 Jun 2005 17:38:38 +0000 (17:38 +0000)
committerjprocter <Jim Procter>
Sun, 5 Jun 2005 17:38:38 +0000 (17:38 +0000)
src/jalview/gui/IdPanel.java

index 5db5e2e..12bf8d4 100755 (executable)
@@ -68,9 +68,14 @@ public class IdPanel extends JPanel implements MouseListener, MouseMotionListene
          jalview.util.BrowserLauncher.openURL(\r
              "http://srs.ebi.ac.uk/srs7bin/cgi-bin/wgetz?-e+[swall-id:" + id +\r
              "]+-vn+2");\r
-       }catch(Exception ex){System.err.println(\r
-           "Try adding the jalview.browser property to your jalview.properties file:\n"\r
-                            +"jalview.browser=firefox"); ex.printStackTrace();}\r
+       }catch(Exception ex){\r
+         // TODO: JBPNote : state dependent error message for real browserLaunch problems rather than unix misconfiguration.\r
+         System.err.println(\r
+             ex.getMessage()+"\nUnixers: Try adding this jalview.browser property line \n"\r
+             +"in your jalview.properties file (/usr/local/bin/firefox is an exanmple browser path):\n"\r
+             +"jalview.browser=/usr/local/bin/firefox\n");\r
+         //ex.printStackTrace();\r
+       }\r
     }\r
 \r
   }\r