JAL-4414 propagate the URL cannot be read error message up the chain to the UI -...
authorJim Procter <jprocter@dundee.ac.uk>
Wed, 5 Jun 2024 14:49:24 +0000 (15:49 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Wed, 5 Jun 2024 14:49:24 +0000 (15:49 +0100)
src/jalview/gui/Desktop.java
src/jalview/io/IdentifyFile.java

index 6c3cc5a..d7f8b1b 100644 (file)
@@ -1425,7 +1425,7 @@ public class Desktop extends jalview.jbgui.GDesktop
           } else {
             String msg = MessageManager.formatMessage("label.error_retrieving_data",
                     url);
-            JvOptionPane.showInternalMessageDialog(Desktop.desktop, msg +"<br/>"+fmtmessage,
+            JvOptionPane.showInternalMessageDialog(Desktop.desktop, fmtmessage,
                     MessageManager.getString("label.error_retrieving_data"),
                     JvOptionPane.WARNING_MESSAGE);
           
index 2a17bd2..1c018c3 100755 (executable)
@@ -104,6 +104,7 @@ public class IdentifyFile
       throw(fnf);
     } catch (IOException e)
     {
+      emessage = e.getMessage();
       Console.error("Error whilst trying to read " + file, e);
     } catch (Exception e)
     {