Sha256: 322293f9b5b900f65ef77239f3fa197e7ac1b6f43d1e9100cf2c971321f58b19
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 Bytes
Contents
require 'socket' module Bukin def self.with_friendly_errors yield rescue Bukin::BukinError => error abort error.message rescue SocketError => error abort "#{error.message}\nCheck that you have a stable connection and the service is online" rescue Errno::ENOENT => error abort error.message rescue Interrupt abort '' rescue Exception => error puts %Q( Oops, Bukin just crashed. Please report this at http://bit.ly/bukin-issues Be sure to include as much information as possible such as your Bukfile, Bukfile.lock and the stack trace below. ) raise error end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bukin-0.6.0 | lib/bukin/friendly_errors.rb |
bukin-0.5.0 | lib/bukin/friendly_errors.rb |
bukin-0.4.0 | lib/bukin/friendly_errors.rb |