Skip to content

Commit 3f008b2

Browse files
committed
Improve spin docs error message when no build is found
1 parent 7894d79 commit 3f008b2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spin/cmds/meson.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,9 @@ def docs(
861861
try:
862862
site_path = _get_site_packages()
863863
except FileNotFoundError:
864-
print("No built numpy found; run `spin build` first.")
864+
cfg = get_config()
865+
distname = cfg.get("project.name", None)
866+
print(f"{distname} build not found; run `spin build` or `spin install` first.")
865867
sys.exit(1)
866868

867869
opts = os.environ.get("SPHINXOPTS", "-W")

0 commit comments

Comments
 (0)