Merge pull request #6844 from MikeMcQuaid/download_strategy_typeerror
download_strategy: use (more consistent) TypeError.
This commit is contained in:
commit
4973f6707b
@ -1122,7 +1122,7 @@ class DownloadStrategyDetector
|
|||||||
when :post then CurlPostDownloadStrategy
|
when :post then CurlPostDownloadStrategy
|
||||||
when :fossil then FossilDownloadStrategy
|
when :fossil then FossilDownloadStrategy
|
||||||
else
|
else
|
||||||
raise "Unknown download strategy #{symbol} was requested."
|
raise TypeError, "Unknown download strategy #{symbol} was requested."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user