aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-30 16:29:10 -0500
committerJack Nagel2014-07-30 16:29:10 -0500
commit7b424c986a33488c05d946b434ab6ed235d16c5f (patch)
tree1d297e4981bd3544435edac9b34c43e7b3e1db54 /Library
parentad22f1530709af886d40618fd00d1bc3e269ba54 (diff)
downloadhomebrew-7b424c986a33488c05d946b434ab6ed235d16c5f.tar.bz2
Handle nonexistent files when constructing ConflictError
Closes #31051.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index a6d9bafd1..576811fb8 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