JAL-4195 report full stack trace for exceptions raised when exporting an image
authorJames Procter <j.procter@dundee.ac.uk>
Tue, 6 Jun 2023 17:42:42 +0000 (18:42 +0100)
committerJames Procter <j.procter@dundee.ac.uk>
Tue, 6 Jun 2023 17:42:42 +0000 (18:42 +0100)
src/jalview/gui/ImageExporter.java

index 32704d6..e18ca86 100644 (file)
@@ -220,8 +220,8 @@ public class ImageExporter
               messageId);
     } catch (Exception e)
     {
-      System.out.println(String.format("Error creating %s file: %s", type,
-              e.toString()));
+      jalview.bin.Console.error(String.format("Error creating %s file: %s", type,
+              e.toString()),e);
       setStatus(MessageManager.formatMessage("info.error_creating_file",
               type), messageId);
     }