aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-27 14:44:17 -0500
committerJack Nagel2014-06-27 14:45:20 -0500
commit586663d228f2bd31d67bc86042d0004b4f44e82d (patch)
tree06b9fa148251dc743d48b93b73d13089c7e8fb02 /Library
parent724ba098c201892e9828d0891e903114c61b19d1 (diff)
downloadhomebrew-586663d228f2bd31d67bc86042d0004b4f44e82d.tar.bz2
Convert to pathname before calling relative_path_from
Fixes #30494.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index f7f1a869b..bc96f5356 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -37,7 +37,7 @@ class Keg
def to_s
s = []
- s << "Could not symlink #{src.relative_path_from(keg)}"
+ s << "Could not symlink #{src.relative_path_from(Pathname(keg))}"
s << "Target #{dst}" << suggestion
s << <<-EOS.undent
To force the link and overwrite all conflicting files:
@@ -52,7 +52,7 @@ class Keg
class DirectoryNotWritableError < LinkError
def to_s; <<-EOS.undent
- Could not symlink #{src.relative_path_from(keg)}
+ Could not symlink #{src.relative_path_from(Pathname(keg))}
#{dst.dirname} is not writable.
EOS
end