Variable contextVariable = Variables.getVariable(graph, parameter);
Variable configVariable = Variables.getVariable(graph, parameter2);
Variable activeVariable = Variables.switchPossibleContext(graph, configVariable, contextVariable.getRepresents(graph));
+ if(activeVariable == null) return Variant.ofInstance("Could not resolve " + configVariable.getURI(graph) + " for " + contextVariable.getURI(graph));
return activeVariable.getVariantValue(graph);
}
}, new Listener<Variant>() {
@Override
public void exception(Throwable t) {
- LOGGER.error("Error while evaluating variable value", t);
+ LOGGER.error("Error while evaluating variable value, context = " + context + " uri=" + uri, t);
}
@Override