diff --git a/lib/cask/cli.rb b/lib/cask/cli.rb index efa43ab78..f2eb98db6 100644 --- a/lib/cask/cli.rb +++ b/lib/cask/cli.rb @@ -33,6 +33,10 @@ class Cask::CLI rest = process_options(rest) Cask.init lookup_command(command).run(*rest) + rescue CaskAlreadyInstalledError => e + opoo e + $stderr.puts e.backtrace if @debug + exit 0 rescue CaskError => e onoe e $stderr.puts e.backtrace if @debug