Skip to content
Snippets Groups Projects
Unverified Commit dccedbf1 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

download_strategy: use (more consistent) TypeError.

Rather than a base `RuntimeError`.

Fixes https://github.com/Homebrew/brew/issues/6839
parent d556d02c
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment