Skip to content

[Issue] Report cron error message where possible #34941

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #34069: Report cron error message where possible


Description

This pull request adds the error message to the new exception created in the exception handler for cron jobs. Without this, the real error message is lost.

Related Pull Requests

None

Manual testing scenarios

  1. Throw a generic exception with a helpful error message within a cron job.
  2. Witness the helpful error message is not logged nor available anywhere.
  3. Apply changes in this pull request.
  4. Witness the helpful error message is preserved.

Questions or comments

See also Ethan3600/magento2-CronjobManager#164

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

Labels

Area: FrameworkComponent: CronIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions