Skip to content
Snippets Groups Projects
Commit b2e8c4e7 authored by Jack Nagel's avatar Jack Nagel
Browse files

Only unlink after a LinkError

parent 727f2047
No related branches found
No related tags found
No related merge requests found
......@@ -231,12 +231,11 @@ class Keg < Pathname
make_relative_symlink(linked_keg_record, self, mode)
optlink
end
ObserverPathnameExtension.total
rescue Exception
opoo "Could not link #{fname}. Unlinking..."
rescue LinkError
unlink
raise
else
ObserverPathnameExtension.total
end
def optlink
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment