Sha256: b9a121d00cce12f213d9fa608f9252d8dd41f10be0665e12c6bafe3ef7a85c61
Contents?: true
Size: 724 Bytes
Versions: 5
Compression:
Stored size: 724 Bytes
Contents
module Percheron class OhDear def initialize(exception) @exception = exception end def generate <<-EOS OH DEAR, we are terribly sorry.. something unexpected occurred :( --snip-- Info ---- Ruby: #{RUBY_VERSION} Percheron: #{Percheron::VERSION} Trace ----- #{exception_message} #{exception_backtrace} --snip-- Please copy the detail between the --snip--'s above and raise a ticket - https://github.com/ashmckenzie/percheron/issues/new?labels=bug EOS end private attr_reader :exception def exception_message exception.inspect end def exception_backtrace exception.backtrace ? exception.backtrace.join("\n") : '' end end end
Version data entries
5 entries across 5 versions & 1 rubygems