summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authormrmagooey <peter.davis8@gmail.com>2018-09-21 22:40:30 +0200
committerSviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>2018-09-21 22:40:30 +0200
commit991f61c138bb0dd52789252eb09ac12d54ae2724 (patch)
tree6c5d59fbd5ba7b3bad08d18deecf12df82381419 /setup.py
parentAdd 'signalled' state to supervisorctl module with associated 'signal' parame... (diff)
downloadansible-991f61c138bb0dd52789252eb09ac12d54ae2724.tar.xz
ansible-991f61c138bb0dd52789252eb09ac12d54ae2724.zip
Improve symlink install error message in setup.py
PR #45132 Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index abbcffe0fa..d8b2017368 100644
--- a/setup.py
+++ b/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]