python-docx-template
python-docx-template copied to clipboard
Print errors when called from command line
At the moment, python-docx-template does not emit any detailed error when it fails to process a template. It just dies with a generic error message ("An error ocurred while trying to render the docx") that does not explain what failed. This PR replaces that generic error with a machine-readable (JSON) more clear error.
an option for json error output should be added...
For added CLI errors, one repro command in PR description would make verification easier for command-line consumers.