CaskAlreadyInstalledError exits with 0

This commit is contained in:
Patrick Stadler 2013-12-14 14:10:57 +01:00
parent c1271f362d
commit cb11080468
1 changed files with 4 additions and 0 deletions

View File

@ -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