prepare_backtrace(uri, result)
public
Returns a modified backtrace from result with the uri
where each call in the backtrace came from.
Show source
def self.prepare_backtrace(uri, result)
prefix = "(#{uri}) "
bt = []
result.backtrace.each do |x|
break if /`__send__'$/ =~ x
if /^\(druby:\/\// =~ x
bt.push(x)
else
bt.push(prefix + x)
end
end
bt
end