Closed rudyardrichter closed 1 year ago
Good idea!
Now (as of commit bf5d9cf1924bb9096a5fc6b764f068ee9cc49c58) both of these errors will produce: ScrivException: Couldn't read 'version' configuration: Missing value name: 'literal: myproj/__init__.py'
. I also added more detail to other kinds of failures reading literals.
This is now released as part of scriv 1.2.1.
It's a very minor issue but an invalid
version
config field causes error messages that (imo) could be more specific/informative. If it would be welcome, I would happily add a PR to have an error suggest the correct format.Missing variable name
As an example this configuration
produces this error:
File available, but missing variable name
For example this configuration:
leads to this error: