Module: TypeformData::Errors

Defined in:
lib/typeform_data/errors.rb

Class Method Summary collapse

Class Method Details

.stringify_error(error) ⇒ Object



22
23
24
25
# File 'lib/typeform_data/errors.rb', line 22

def self.stringify_error(error)
  "#{error.backtrace.first}: #{error.message} (#{error.class})\n" +
    error.backtrace.drop(1).map { |line| "\t#{line}\n" }.join
end