JAL-629 Method to use for printStackTrace
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 10 Aug 2023 09:50:14 +0000 (10:50 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 10 Aug 2023 09:50:14 +0000 (10:50 +0100)
src/jalview/bin/Console.java

index 7ac793d..a280e88 100644 (file)
@@ -321,6 +321,12 @@ public class Console
     }
   }
 
+  public static void printStackTrace(Exception e)
+  {
+    // send message to stderr if output to stdout is expected
+    e.printStackTrace(System.err);
+  }
+
   public final static String LOGGING_TEST_MESSAGE = "Logging to STDERR";
 
 }