Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Improve symlink error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreso committed Mar 2, 2020
1 parent c4ccaee commit d023b3a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/res/fm/shell/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ def symlink(target , link_name):
target_check = os.path.join( link_path , target )

if not os.path.exists( target_check ):
raise IOError("The target:%s does not exist" % target)
raise IOError(
"{} (target) and {} (link_name) requested, which implies that {} must exist, but it does not.".format(
target, link_name, target_check
)
)


if os.path.islink( link_name ):
Expand Down

0 comments on commit d023b3a

Please sign in to comment.