Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 1f87441

Browse files
committed
Better diagnostics on import fail
1 parent 56782b2 commit 1f87441

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runestone/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,9 @@ def rs2ptx(course, sourcedir, outdir):
324324
del os.environ["DBURL"]
325325
try:
326326
import pavement
327-
except:
327+
except Exception as e:
328328
click.echo("Could not read pavement.py file, aborting")
329+
click.echo(f"Details: {e}")
329330
sys.exit(1)
330331

331332
if not course:

0 commit comments

Comments
 (0)