[Swift-commit] r3174 - trunk/src/org/griphyn/vdl/karajan/lib
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Sun Oct 25 15:49:27 CDT 2009
Author: hategan
Date: 2009-10-25 15:49:27 -0500 (Sun, 25 Oct 2009)
New Revision: 3174
Modified:
trunk/src/org/griphyn/vdl/karajan/lib/SiteProfile.java
Log:
complain if requested profile is missing
Modified: trunk/src/org/griphyn/vdl/karajan/lib/SiteProfile.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/SiteProfile.java 2009-10-23 20:30:59 UTC (rev 3173)
+++ trunk/src/org/griphyn/vdl/karajan/lib/SiteProfile.java 2009-10-25 20:49:27 UTC (rev 3174)
@@ -38,7 +38,7 @@
public Object function(VariableStack stack) throws ExecutionException {
BoundContact bc = (BoundContact) PA_HOST.getValue(stack);
- return getSingle(bc, new FQN(TypeUtil.toString(PA_FQN.getValue(stack))));
+ return getSingle(stack, bc, new FQN(TypeUtil.toString(PA_FQN.getValue(stack))));
}
public static final FQN SWIFT_WRAPPER_INTERPRETER = new FQN("swift:wrapperInterpreter");
@@ -91,7 +91,7 @@
addDefault(null, SWIFT_CLEANUP_COMMAND_OPTIONS, new String[] {"-rf"});
}
- private Object getSingle(BoundContact bc, FQN fqn) {
+ private Object getSingle(VariableStack stack, BoundContact bc, FQN fqn) throws ExecutionException {
String value = getProfile(bc, fqn);
if (value == null) {
Os os = getOS(bc);
@@ -102,7 +102,7 @@
return os;
}
else {
- return null;
+ throw new ExecutionException(stack, "Missing profile: " + fqn);
}
}
else {
More information about the Swift-commit
mailing list