diff options
| author | Markus Reiter | 2017-03-06 22:53:28 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-03-07 17:18:35 +0100 |
| commit | 536a377d71f4c1718fe8d690d1b2b72ed042b323 (patch) | |
| tree | bc07df85f8e5ddcfc4b8e1621d35ca97e0cffe64 /Library/Homebrew/cask/lib | |
| parent | 1959cc3f2df6287467d90242fc6dee41398a5731 (diff) | |
| download | brew-536a377d71f4c1718fe8d690d1b2b72ed042b323.tar.bz2 | |
Use `ArgumentError` instead of `CaskError` in `CLI`.
Diffstat (limited to 'Library/Homebrew/cask/lib')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb index 8e178e373..102446ea4 100644 --- a/Library/Homebrew/cask/lib/hbc/cli.rb +++ b/Library/Homebrew/cask/lib/hbc/cli.rb @@ -228,9 +228,9 @@ module Hbc remaining << head retry rescue OptionParser::MissingArgument - raise CaskError, "The option '#{head}' requires an argument" + raise ArgumentError, "The option '#{head}' requires an argument." rescue OptionParser::AmbiguousOption - raise CaskError, "There is more than one possible option that starts with '#{head}'" + raise ArgumentError, "There is more than one possible option that starts with '#{head}'." end end |
