Skip to content

Commit

Permalink
handle SocketError as well
Browse files Browse the repository at this point in the history
  • Loading branch information
auxesis authored and jamtur01 committed Dec 30, 2010
1 parent d6947c3 commit a11f5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/module/tool/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def read_contact(request)
Net::HTTP.start(@uri.host, @uri.port) do |http|
http.request(request)
end
rescue Errno::ECONNREFUSED
rescue Errno::ECONNREFUSED, SocketError
abort "Could not reach remote repository"
end
end
Expand Down

0 comments on commit a11f5c0

Please sign in to comment.