Sha256: 85d3e6552df45a03f93258b05a2ccbdb57acc3ea601e5ca2e183f17446b99e77
Contents?: true
Size: 630 Bytes
Versions: 5
Compression:
Stored size: 630 Bytes
Contents
module Bundler def self.with_friendly_errors begin yield rescue Bundler::BundlerError => e Bundler.ui.error e.message Bundler.ui.debug e.backtrace.join("\n") exit e.status_code rescue Interrupt => e Bundler.ui.error "\nQuitting..." Bundler.ui.debug e.backtrace.join("\n") exit 1 rescue SystemExit => e exit e.status rescue Exception => e Bundler.ui.error( "Unfortunately, a fatal error has occurred. Please see the Bundler \n" \ "troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! \n") raise e end end end
Version data entries
5 entries across 5 versions & 1 rubygems