JAL-1312 more helpful error message when translation breaks
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Mon, 17 Jun 2013 12:52:21 +0000 (13:52 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Mon, 17 Jun 2013 12:52:21 +0000 (13:52 +0100)
src/jalview/gui/AlignFrame.java

index 77c3b6a..ceb08ee 100755 (executable)
@@ -4603,7 +4603,13 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
     } catch (Exception ex)
     {
       al = null;
-      jalview.bin.Cache.log.debug("Exception during translation.", ex);
+      jalview.bin.Cache.log.error("Exception during translation. Please report this !", ex);
+      JOptionPane
+      .showMessageDialog(
+              Desktop.desktop,
+              "Unfortunately, something went wrong when translating your sequences.\nPlease take a look in the Jalview java console\nand submit a bug report including the stacktrace.",
+              "Implementation error: Translation Failed", JOptionPane.ERROR_MESSAGE);
+      return;
     }
     if (al == null)
     {