Skip to content

Commit

Permalink
Bugfix: IgnoredErrorHandler was not working
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorprogger committed Aug 7, 2024
1 parent 88551ba commit 698e305
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

- Bugfix: `StateJson` didn't correctly set data when data is not a string

## 0.11.4

- Bugfix: IgnoredErrorHandler was not working

## 0.12.0

Work in progress
2 changes: 1 addition & 1 deletion src/Event/IgnoredErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(string ...$ignoredErrors)

public function handle(RequestErrorEvent $event): RequestErrorEvent
{
if (isset($this->ignoredErrors[$event->responseDecoded['description'] ?? ''])) {
if (isset($this->ignoredErrors[$event->exception->responseDecoded['description'] ?? ''])) {
$event->suppressException = true;
}

Expand Down

0 comments on commit 698e305

Please sign in to comment.