8000 feature #52951 [Messenger] Add previous to the exception output (ToshY) · symfony/symfony@99b25a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 99b25a1

Browse files
committed
feature #52951 [Messenger] Add previous to the exception output (ToshY)
This PR was merged into the 7.2 branch. Discussion ---------- [Messenger] Add previous to the exception output | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | Fix #52921 | License | MIT Adds `previous` part of the exception to be displayed from `messenger:show:failed <id> -vv` command. Commits ------- 5f63be6 Add previous to the exception output
2 parents a44311e + 5f63be6 commit 99b25a1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Symfony/Component/Messenger/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
7.2
55
---
66

7+
* Add `$previous` to the exception output at the `messenger:failed:show` command
78
* `WrappedExceptionsInterface` now extends PHP's `Throwable` interface
89
* Add `#[AsMessage]` attribute with `$transport` parameter for message routing
910
* Add `--format` option to the `messenger:stats` command

src/Symfony/Component/Messenger/Command/AbstractFailedMessagesCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ private function createCloner(): ?ClonerInterface
182182
Caster::PREFIX_VIRTUAL.'file' => $flattenException->getFile(),
183183
Caster::PREFIX_VIRTUAL.'line' => $flattenException->getLine(),
184184
Caster::PREFIX_VIRTUAL.'trace' => new TraceStub($flattenException->getTrace()),
185+
Caster::PREFIX_VIRTUAL.'previous' => $flattenException->getPrevious(),
185186
];
186187
}]);
187188

0 commit comments

Comments
 (0)
0