download_strategy: use (more consistent) TypeError.
Rather than a base `RuntimeError`. Fixes https://github.com/Homebrew/brew/issues/6839
This commit is contained in:
		
							parent
							
								
									d556d02cd4
								
							
						
					
					
						commit
						dccedbf104
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user