Skip to content
Permalink
Browse files

Helpers::improveException() do not improve already improved errors

(Nette\MemberAccessException extends Error since Nette 3)
  • Loading branch information...
dg committed May 29, 2019
1 parent 988f728 commit 4318166d88779bf50cc10fd1a526e769a6116895
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Tracy/Helpers.php
@@ -175,7 +175,7 @@ public static function getSource(): string
public static function improveException(\Throwable $e): void
{
$message = $e->getMessage();
if (!$e instanceof \Error && !$e instanceof \ErrorException) {
if ((!$e instanceof \Error && !$e instanceof \ErrorException) || strpos($e->getMessage(), 'did you mean')) {
// do nothing
} elseif (preg_match('#^Call to undefined function (\S+\\\\)?(\w+)\(#', $message, $m)) {
$funcs = array_merge(get_defined_functions()['internal'], get_defined_functions()['user']);

0 comments on commit 4318166

Please sign in to comment.
You can’t perform that action at this time.