diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index a6d9bafd10..576811fb88 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -26,7 +26,7 @@ class Keg class ConflictError < LinkError def suggestion conflict = Keg.for(dst) - rescue NotAKegError + rescue NotAKegError, Errno::ENOENT "already exists. You may want to remove it:\n rm #{dst}\n" else <<-EOS.undent