aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-09-18 16:55:59 +0100
committerMike McQuaid2016-09-18 16:55:59 +0100
commitee0fb3e999197b866d727a9c63ab3dda31603639 (patch)
treedb528eb4b02df11cd9df5d2e30a77a9700194241 /Library
parentf4a8d28819f1fee73fcc63d08e70cb36eecdfb20 (diff)
downloadbrew-ee0fb3e999197b866d727a9c63ab3dda31603639.tar.bz2
update-report: handle directory not existing.
This shouldn't be possible to occur after #1013 but it makes sense to add it anyway.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update-report.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb
index 9545110b0..1ab5f39d1 100644
--- a/Library/Homebrew/cmd/update-report.rb
+++ b/Library/Homebrew/cmd/update-report.rb
@@ -258,7 +258,7 @@ module Homebrew
dst = Pathname.new("#{HOMEBREW_PREFIX}/bin/brew")
begin
FileUtils.ln_s(src.relative_path_from(dst.parent), dst)
- rescue Errno::EACCES
+ rescue Errno::EACCES, Errno::ENOENT
ofail <<-EOS.undent
Could not create symlink at #{dst}!
Please do this manually with: