Skip to content

Commit

Permalink
🚑 Disable creation of unknown referencable exceptions (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrLevin authored Nov 14, 2023
1 parent 08b5721 commit f9acc15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public function render($request, Throwable $exception) {
&& (!in_array(get_class($exception), $this->dontReference) || $exception->getCode() === 500)
) {
$name = get_class($exception);
$exception = new Referencable();
Log::error(sprintf('Reference for above exception of type %s: %s', $name, $exception->reference));
//ToDo: $exception = new Referencable();
Log::error(sprintf('Reference for above exception of type %s: %s', $name, 'nonexistent-reference'));
}

$response = parent::render($request, $exception);
Expand Down

0 comments on commit f9acc15

Please sign in to comment.