Commit 814f05ec authored by Hugo Tunius's avatar Hugo Tunius Committed by Kyle Fuller

[PodspecSource] Update message for informative error if fetch fails

parent 3c7015a6
......@@ -15,7 +15,7 @@ module Pod
open(podspec_uri) { |io| store_podspec(sandbox, io.read, is_json) }
rescue OpenURI::HTTPError => e
status = e.io.status.join(' ')
raise Informative, "Failed to fetch podspec for `#{name}` at #{podspec_uri}. Error: #{status}"
raise Informative, "Failed to fetch podspec for `#{name}` at `#{podspec_uri}`.\n Error: #{status}"
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment