# 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:     error.set_backtrace other.backtrace if other and other.respond_to?(:backtrace)
14: 
15:     error
16:   end