improve error details for missing functions

This commit is contained in:
Jonathan Shook 2020-06-17 15:28:46 -05:00
parent d79ff1fa9e
commit a123487935

View File

@ -158,6 +158,11 @@ public class VirtDataComposer {
diagnostics.trace(" resolved functions");
diagnostics.trace(summarize(resolved, " - "));
if (resolved.size()==0) {
return diagnostics.error(new RuntimeException("There were no functions found for " + call.toString()));
}
funcs.addFirst(resolved);
Set<Class<?>> inputTypes = resolved.stream().map(ResolvedFunction::getInputClass).collect(Collectors.toSet());