Skip to content

Commit

Permalink
Handles responses with no payload more robustly
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Esposito committed Jan 12, 2012
1 parent eb46225 commit 86a9bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/jira_crawler/lib/jira_crawler/crisply_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def post_activity activity_item
logger.warn "Unable to POST activity: #{xml}\nResponse:#{e.response.body}"
end
rescue RestClient::InternalServerError, RestClient::RequestFailed, RestClient::Request::Unauthorized => e
logger.error e.response.body
logger.error e.response.body if e.response
raise e
end

Expand Down

0 comments on commit 86a9bd0

Please sign in to comment.