Merge pull request #6844 from MikeMcQuaid/download_strategy_typeerror

download_strategy: use (more consistent) TypeError.
This commit is contained in:
Mike McQuaid 2019-12-16 12:07:30 +00:00 committed by GitHub
commit 4973f6707b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1122,7 +1122,7 @@ class DownloadStrategyDetector
when :post then CurlPostDownloadStrategy
when :fossil then FossilDownloadStrategy
else
raise "Unknown download strategy #{symbol} was requested."
raise TypeError, "Unknown download strategy #{symbol} was requested."
end
end
end