# If module has resolutions they must resolve - it will not see into other modules otherwise
# TODO: possible give errors if there are unresolved references
# i.e. !pm.unmet_dependencies.empty? (if module lacks metadata it is considered to have met all).
# The face "module" can display error information.
# Here, we are just giving up without explaining - the user can check with the module face (or console)
#
unless pm.unmet_dependencies.empty?
# TODO: Exception or just warning?
Puppet.warning("ModuleLoader: module '#{module_data.name}' has unresolved dependencies"+
" - it will only see those that are resolved."+
" Use 'puppet module list --tree' to see information about modules")
# raise Puppet::Pops::Loader::Loader::Error, "Loader Error: Module '#{module_data.name}' has unresolved dependencies - use 'puppet module list --tree' to see information"