aboutsummaryrefslogtreecommitdiffstats
path: root/generat3d/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'generat3d/config.py')
-rw-r--r--generat3d/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/generat3d/config.py b/generat3d/config.py
index 804723f..fbb9f4d 100644
--- a/generat3d/config.py
+++ b/generat3d/config.py
@@ -53,7 +53,10 @@ def library_roots(cli_roots, path=None):
for r in roots:
if not r.strip():
raise Error("empty library root")
- p = Path(r).expanduser()
+ try:
+ p = Path(r).expanduser()
+ except RuntimeError:
+ raise Error(f"cannot expand library root: {r}") from None
if not p.is_dir():
raise Error(f"library root not found: {p}")
out.append(p)