Skip to content

Commit

Permalink
[8.x] ErrorException: Undefined array key "exception" (#38059)
Browse files Browse the repository at this point in the history
  • Loading branch information
kekstoaster authored Jul 19, 2021
1 parent b1ed53e commit 3bf0ec8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected function registerExceptionTracking()
);

$this->app->make('events')->listen(MessageLogged::class, function ($event) {
if ($event->context['exception']) {
if (isset($event->context['exception'])) {
$this->app->make(LoggedExceptionCollection::class)
->push($event->context['exception']);
}
Expand Down

0 comments on commit 3bf0ec8

Please sign in to comment.