From e5162c81c20d1da22a7eac533126d074d654ef09 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 17 Jun 2013 13:52:21 +0100 Subject: [PATCH] JAL-1312 more helpful error message when translation breaks --- src/jalview/gui/AlignFrame.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 77c3b6a..ceb08ee 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -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) { -- 1.7.10.2