Module: Capistrano::Jira::ErrorHelpers

Included in:
IssueFinder
Defined in:
lib/capistrano/jira/errors.rb

Instance Method Summary collapse

Instance Method Details

#error_message(e) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/capistrano/jira/errors.rb', line 7

def error_message(e)
  case e
  when JIRA::HTTPError
    r = e.response
    "#{r.class.name}; #{r.code}: #{r.message} \n #{r.body}"
  else
    e.message
  end
end