From 75893911f6680a41bc4f1e5a3c6db5957263dec4 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 4 Jun 2012 17:28:21 +0100 Subject: [PATCH] JAL-976 ensure job id gets written out if there's an exception --- src/jalview/ws/jws2/JabawsAlignCalcWorker.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jalview/ws/jws2/JabawsAlignCalcWorker.java b/src/jalview/ws/jws2/JabawsAlignCalcWorker.java index cab166f..8eb83ee 100644 --- a/src/jalview/ws/jws2/JabawsAlignCalcWorker.java +++ b/src/jalview/ws/jws2/JabawsAlignCalcWorker.java @@ -133,6 +133,8 @@ public abstract class JabawsAlignCalcWorker extends AlignCalcWorker return; } + String rslt="JOB NOT DEFINED"; + try { if (checkDone()) @@ -151,7 +153,6 @@ public abstract class JabawsAlignCalcWorker extends AlignCalcWorker AlignmentAnnotation[] aa = alignViewport.getAlignment() .getAlignmentAnnotation(); - String rslt; if (preset == null) { rslt = aaservice.analize(seqs); @@ -241,7 +242,7 @@ public abstract class JabawsAlignCalcWorker extends AlignCalcWorker calcMan.workerCannotRun(this); } catch (ResultNotAvailableException x) { - System.err.println("collection error:"); + System.err.println("collection error:\nJob ID: "+rslt); x.printStackTrace(); calcMan.workerCannotRun(this); -- 1.7.10.2