Sha256: 7bbc181b56752881b8a0a40f1f3960d6322c29d27808f8883307e714bdf6c468
Contents?: true
Size: 531 Bytes
Versions: 69
Compression:
Stored size: 531 Bytes
Contents
module Compass::Exec module Helpers extend self def report_error(e, options) $stderr.puts "#{e.class} on line #{get_line e} of #{get_file e}: #{e.message}" if options[:trace] e.backtrace[1..-1].each { |t| $stderr.puts " #{t}" } else $stderr.puts "Run with --trace to see the full backtrace" end end def get_file(exception) exception.backtrace[0].split(/:/, 2)[0] end def get_line(exception) exception.backtrace[0].scan(/:(\d+)/)[0] end end end
Version data entries
69 entries across 68 versions & 6 rubygems