chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
30 stars 4 forks source link

Produce an error message when an item has no source field #217

Closed christianp closed 11 months ago

christianp commented 11 months ago

We had a package whose config listed a standalone item, but didn't specify the source file. The build process eventually fails with an obscure error ValueError: PosixPath('.') has an empty name, which doesn't help identify the source of the problem.

Chirun should check that the source is set and exists, and should throw a readable error message if not.