Improve symlink install error message in setup.py

PR #45132

Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
This commit is contained in:
mrmagooey 2018-09-22 06:40:30 +10:00 committed by Sviatoslav Sydorenko
parent 8659a88fea
commit 991f61c138

View file

@ -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]