[Swift-commit] r6013 - trunk/src/org/griphyn/vdl/karajan

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Fri Nov 9 23:18:56 CST 2012


Author: hategan
Date: 2012-11-09 23:18:56 -0600 (Fri, 09 Nov 2012)
New Revision: 6013

Modified:
   trunk/src/org/griphyn/vdl/karajan/VDL2ExecutionContext.java
Log:
print nice karajan/swift level stack trace

Modified: trunk/src/org/griphyn/vdl/karajan/VDL2ExecutionContext.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/VDL2ExecutionContext.java	2012-11-10 05:17:38 UTC (rev 6012)
+++ trunk/src/org/griphyn/vdl/karajan/VDL2ExecutionContext.java	2012-11-10 05:18:56 UTC (rev 6013)
@@ -20,6 +20,8 @@
  */
 package org.griphyn.vdl.karajan;
 
+import java.util.List;
+
 import org.apache.log4j.Logger;
 import org.globus.cog.karajan.stack.VariableStack;
 import org.globus.cog.karajan.workflow.ElementTree;
@@ -58,6 +60,13 @@
 			else {
 				getStderr().append(ProcessBulkErrors.getMessageChain(e));
 			}
+			if (e.getStack() != null) {
+			    List<String> l = Monitor.getSwiftTrace(e.getStack());
+			    for (String s : l) {
+			        getStderr().append("\n\t");
+			        getStderr().append(s);
+			    }
+			}
 			getStderr().append("\n");
 		}
 		else {




More information about the Swift-commit mailing list