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
commit3451c2d67f723d81b10b4d477b2a5d8e4f4db728 (patch)
tree4f7e785a8c366354c05659ca0f0e7a866e47909c /Library
parentba4a4e41034be1bde963defa09c295aeabdf2d9c (diff)
downloadbrew-3451c2d67f723d81b10b4d477b2a5d8e4f4db728.tar.bz2
Handle nonexistent files when constructing ConflictError
Closes Homebrew/homebrew#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