Skip to content

catch errors and shorten details - #1269

Merged
stentrop merged 1 commit into
stablefrom
chore/shorten_log_infos
Oct 19, 2026
Merged

stentrop merged 1 commit into
stablefrom
chore/shorten_log_infos

Conversation

@stentrop

Copy link
Copy Markdown
Contributor

All changes meet the following requirements

  • Changelog entry was added
  • Changes have been documented
  • Changes have been tested by the author
  • Changes have been tested by the reviewer
  • Changes to routes were replicated in webshop package
  • Plugin can be built

@plentymarkets/plentyshop

@stentrop
stentrop requested a review from a team as a code owner October 19, 2026 12:03
@stentrop
stentrop requested a balanced review from Copilot October 19, 2026 12:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused error-handling changes preserve successful responses, and static review identified no blocking issues.

No open issues 🎉

What changed in this PR

Adds error handling to template API resources so rendering failures return empty HTTP 500 responses instead of exposing exception details.

Changes:

  • Catches rendering errors in both resources.
  • Logs failure details server-side while preserving successful responses.
File Description
src/​Api/​Resources/​TemplateResource.php Handles and logs Twig rendering failures.
src/​Api/​Resources/​OrderTemplateResource.php Handles and logs order-template rendering failures.

Review effort: Balanced

@stentrop
stentrop merged commit 9b7c621 into stable Oct 19, 2026
4 checks passed
@stentrop
stentrop deleted the chore/shorten_log_infos branch October 19, 2026 12:17
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.

3 participants