Method: Puppet::Util::Errors#error_context

Defined in:
lib/puppet/util/errors.rb

#error_contextString

Return a human-readable string of this object’s file and line attributes, if set.

Returns:

  • (String)

    description of file and line with a leading space



97
98
99
# File 'lib/puppet/util/errors.rb', line 97

def error_context
  Puppet::Util::Errors.error_location_with_space(file, line)
end