Method: Puppet::Util::Errors.error_location_with_unknowns
- Defined in:
- lib/puppet/util/errors.rb
.error_location_with_unknowns(file, line) ⇒ String
Return a human-readable string of this object’s file and line where unknown entries are listed as ‘unknown’
85 86 87 88 89 90 91 |
# File 'lib/puppet/util/errors.rb', line 85 def self.error_location_with_unknowns(file, line) file = nil if (file.is_a?(String) && file.empty?) line = nil if (line.is_a?(String) && line.empty?) file = _('unknown') unless file line = _('unknown') unless line error_location(file, line) end |