Skip to content

Commit 0f26766

Browse files
committed
up: update the Php.exception2html() render logic
1 parent 13fd2e5 commit 0f26766

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Util/PhpException.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ public static function toHtml(Throwable $e, bool $getTrace = true, string $catch
7474
);
7575
}
7676

77-
return $clearHtml ? strip_tags($message) : "<div class=\"exception-box\">$message</div>";
77+
if ($clearHtml) {
78+
return strip_tags($message);
79+
}
80+
81+
$style = 'padding: 5em; font-size: x-large;';
82+
return "<div class=\"exception-box\" style='$style'>$message</div>";
7883
}
7984

8085
/**

0 commit comments

Comments
 (0)