Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Bug 967504 #2900

Merged
merged 8 commits into from Jun 20, 2013
Merged

Bug 967504 #2900

merged 8 commits into from Jun 20, 2013

Conversation

fabianofranz
Copy link
Member

No description provided.

@@ -175,7 +175,7 @@ def request(method, path, *arguments)
rescue OpenSSL::SSL::SSLError => e
raise SSLError.new(e.message)
rescue Net::HTTP::Persistent::Error => e
raise ConnectionError.new(e.message)
raise e.message.include?('Timeout::Error') ? TimeoutError.new(e.message) : ConnectionError.new(e.message)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will e.message ever be nil?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parsing the exception message is not exactly the most elegant solution but needed since we don't get a proper Timeout::Error here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think it will ever be nil, but I'll add a check anyway.

@fabianofranz
Copy link
Member Author

@liggitt @smarterclayton Ok, ready to merge.

@smarterclayton
Copy link
Contributor

Reviewed, [merge]

@openshift-bot
Copy link

Online Merge Results: SUCCESS (https://ci.dev.openshift.redhat.com/jenkins/job/merge_pull_requests/3014/) (Image: devenv_3393)

@openshift-bot
Copy link

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link

Origin Test Results: Waiting for stable build of 'origin_ami'

@openshift-bot
Copy link

@openshift-bot
Copy link

Evaluated for online up to 6cc7880

openshift-bot pushed a commit that referenced this pull request Jun 20, 2013
@openshift-bot openshift-bot merged commit 04cfc3f into openshift:master Jun 20, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants