From 28840d74c26189f4e730b906c2383e32ea6165fe Mon Sep 17 00:00:00 2001 From: Jenny Shen Date: Mon, 19 Sep 2022 09:43:17 -0400 Subject: [rubygems/rubygems] Refine error message to check the push URL instead of just the host https://github.com/rubygems/rubygems/commit/46990f3292 --- lib/rubygems/gemcutter_utilities.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rubygems') diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb index fb7b9149ba..3477422b79 100644 --- a/lib/rubygems/gemcutter_utilities.rb +++ b/lib/rubygems/gemcutter_utilities.rb @@ -213,7 +213,7 @@ module Gem::GemcutterUtilities say clean_text(response.body) end when Net::HTTPPermanentRedirect, Net::HTTPRedirection then - message = "The request has redirected permanently to #{response['location']}. Please check your defined push host." + message = "The request has redirected permanently to #{response['location']}. Please check your defined push host URL." message = "#{error_prefix}: #{message}" if error_prefix say clean_text(message) -- cgit v1.2.3