python-docx-template icon indicating copy to clipboard operation
python-docx-template copied to clipboard

Print errors when called from command line

Open alranel opened this issue 6 months ago • 1 comments

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.

alranel avatar Jun 03 '26 18:06 alranel

an option for json error output should be added...

elapouya avatar Jul 07 '26 12:07 elapouya

For added CLI errors, one repro command in PR description would make verification easier for command-line consumers.

arturict avatar Jul 13 '26 14:07 arturict