Improve symlink install error message in setup.py
PR #45132 Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
This commit is contained in:
parent
8659a88fea
commit
991f61c138
1 changed files with 5 additions and 1 deletions
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']:
|
if 'ansible-playbook' in symlink_data['script']['ansible']:
|
||||||
_cache_symlinks(symlink_data)
|
_cache_symlinks(symlink_data)
|
||||||
else:
|
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:
|
else:
|
||||||
raise
|
raise
|
||||||
symlinks = symlink_data[symlink_type]
|
symlinks = symlink_data[symlink_type]
|
||||||
|
|
Loading…
Reference in a new issue