diff options
| author | Markus Reiter | 2017-06-11 02:00:59 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-06-13 17:14:28 +0200 |
| commit | 66ce57530150d05f52c552347ebb7c44679daf44 (patch) | |
| tree | a8e81126c6e2acff92b4baf43e0410e4e5e537c8 /Library/Homebrew/cask/lib/hbc/cli.rb | |
| parent | 054ed10cb1ea2d64c39ba2a3208c14a33d31274d (diff) | |
| download | brew-66ce57530150d05f52c552347ebb7c44679daf44.tar.bz2 | |
🔨 Refactor Cask exceptions.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb index eec2788ec..04a414904 100644 --- a/Library/Homebrew/cask/lib/hbc/cli.rb +++ b/Library/Homebrew/cask/lib/hbc/cli.rb @@ -166,7 +166,7 @@ module Hbc Hbc.default_tap.install unless Hbc.default_tap.installed? Hbc.init if self.class.should_init?(command) self.class.run_command(command, *args) - rescue CaskError, CaskSha256MismatchError, ArgumentError, OptionParser::InvalidOption => e + rescue CaskError, ArgumentError, OptionParser::InvalidOption => e msg = e.message msg << e.backtrace.join("\n").prepend("\n") if ARGV.debug? onoe msg |
