[Swift-commit] r6015 - trunk/src/org/griphyn/vdl/karajan/lib/swiftscript

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Fri Nov 9 23:21:45 CST 2012


Author: hategan
Date: 2012-11-09 23:21:45 -0600 (Fri, 09 Nov 2012)
New Revision: 6015

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/FnArg.java
Log:
attach stack to exception such that a trace can be printed by swift

Modified: trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/FnArg.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/FnArg.java	2012-11-10 05:19:44 UTC (rev 6014)
+++ trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/FnArg.java	2012-11-10 05:21:45 UTC (rev 6015)
@@ -82,7 +82,7 @@
 			value = P_VALUE.getValue(stack);
 		}
 		if (value == null) {
-			throw new ExecutionException("Missing command line argument: " + name);
+			throw new ExecutionException(stack, "Missing command line argument: " + name);
 		}
 		else {
 			DSHandle result = new RootDataNode(Types.STRING, value);	




More information about the Swift-commit mailing list