From 991f61c138bb0dd52789252eb09ac12d54ae2724 Mon Sep 17 00:00:00 2001 From: mrmagooey Date: Sat, 22 Sep 2018 06:40:30 +1000 Subject: [PATCH] Improve symlink install error message in setup.py PR #45132 Co-authored-by: Sviatoslav Sydorenko --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]