Module: Travis::CLI::Gh::GitHub::Error
Instance Method Summary collapse
Instance Method Details
#gh_error(e) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/travis/cli/gh/github.rb', line 8 def gh_error(e) raise e if explode? or not e.respond_to? :info = e.info[:response_body].to_s = JSON.load().fetch('message') rescue nil = "GitHub says: #{}" error end |