more helpful error message when failing to resolve functions