Skip to content

Print errors when called from command line#641

Open
alranel wants to merge 1 commit into
elapouya:masterfrom
alranel:print-error
Open

Print errors when called from command line#641
alranel wants to merge 1 commit into
elapouya:masterfrom
alranel:print-error

Conversation

@alranel

@alranel alranel commented Jun 3, 2026

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant