mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Improve symlink install error message in setup.py
PR #45132 Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
This commit is contained in:
committed by
Sviatoslav Sydorenko
parent
8659a88fea
commit
991f61c138
6
setup.py
6
setup.py
@@ -79,7 +79,11 @@ def _maintain_symlinks(symlink_type, base_path):
|
||||
if 'ansible-playbook' in symlink_data['script']['ansible']:
|
||||
_cache_symlinks(symlink_data)
|
||||
else:
|
||||
raise
|
||||
raise RuntimeError(
|
||||
"Pregenerated symlink list was not present and expected "
|
||||
"symlinks in ./bin were missing or broken. "
|
||||
"Perhaps this isn't a git checkout?"
|
||||
)
|
||||
else:
|
||||
raise
|
||||
symlinks = symlink_data[symlink_type]
|
||||
|
||||
Reference in New Issue
Block a user