Exception: PuppetDebugger::Exception::NodeDefinitionError

Inherits:
FatalError
  • Object
show all
Defined in:
lib/puppet-debugger/support/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#data

Instance Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from PuppetDebugger::Exception::Error

Instance Method Details

#messageObject



59
60
61
62
63
64
65
66
67
68
69
# File 'lib/puppet-debugger/support/errors.rb', line 59

def message
  out = <<~OUT
    You are missing a default node definition in your site.pp that is required for compilation.
    Please ensure you have at least the following default node definition
      node default {
        # include classes here
      }
    in your #{data[:default_site_manifest]} file.
  OUT
  out.fatal
end