# File lib/puppet/util/errors.rb, line 9 9: def adderrorcontext(error, other = nil) 10: error.line ||= self.line if self.respond_to?(:line) and self.line 11: error.file ||= self.file if self.respond_to?(:file) and self.file 12: 13: if other and other.respond_to?(:backtrace) 14: error.set_backtrace other.backtrace 15: end 16: 17: return error 18: end