@Override
public void prerequisiteFailed(final Collection<? extends Prerequisite<?>> failed) {
if (failed.contains(belongsToPrereq)) {
- throw new InferenceException(belongsToCtx.sourceReference(),
- "Module '%s' from belongs-to was not found", belongsToCtx.argument());
+ throw new InferenceException(belongsToCtx, "Module '%s' from belongs-to was not found",
+ belongsToCtx.argument());
}
}
});