Skip to content

Fixing error handling message when PDF generation fails#285

Open
Arijit429 wants to merge 1 commit intofireform-core:mainfrom
Arijit429:fix-pdf-error-handling-message
Open

Fixing error handling message when PDF generation fails#285
Arijit429 wants to merge 1 commit intofireform-core:mainfrom
Arijit429:fix-pdf-error-handling-message

Conversation

@Arijit429
Copy link

Before the API returns a 500 Internal Server Error when PDF generation fails because output_pdf_path becomes None.
This changed and adds validation after controller.fill_form() and raises a proper 400 error instead, improving API reliability and in result of good user understanding.

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