diff --git a/bootstrap/helpers/github.php b/bootstrap/helpers/github.php index e646aa738..be9ca9582 100644 --- a/bootstrap/helpers/github.php +++ b/bootstrap/helpers/github.php @@ -21,10 +21,10 @@ function generateGithubToken(GithubApp $source, string $type) if ($timeDiff > 0) { throw new \Exception( - 'System time is out of sync with GitHub API time:'.PHP_EOL. - '- System time: '.$serverTime->format('Y-m-d H:i:s').' UTC'.PHP_EOL. - '- GitHub time: '.$githubTime->format('Y-m-d H:i:s').' UTC'.PHP_EOL. - '- Difference: '.$timeDiff.' seconds'.PHP_EOL. + 'System time is out of sync with GitHub API time:
'. + '- System time: '.$serverTime->format('Y-m-d H:i:s').' UTC
'. + '- GitHub time: '.$githubTime->format('Y-m-d H:i:s').' UTC
'. + '- Difference: '.$timeDiff.' seconds
'. 'Please synchronize your system clock.' ); } @@ -96,11 +96,11 @@ function githubApi(GithubApp|GitlabApp|null $source, string $endpoint, string $m $remainingCalls = $response->header('X-RateLimit-Remaining', '0'); throw new \Exception( - "GitHub API call failed:\n". - "Error: {$errorMessage}\n". - "Rate Limit Status:\n". - "- Remaining Calls: {$remainingCalls}\n". - "- Reset Time: {$resetTime} UTC" + 'GitHub API call failed:
'. + "Error: {$errorMessage}
". + 'Rate Limit Status:
'. + "- Remaining Calls: {$remainingCalls}
". + "- Reset Time: {$resetTime} UTC" ); } diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php index 9e556cbdf..c8d6ea0ad 100644 --- a/resources/views/errors/500.blade.php +++ b/resources/views/errors/500.blade.php @@ -3,11 +3,11 @@

500

Wait, this is not cool...

-

There has been an error, we are working on it. -

+

There has been an error, we are working on it.

@if ($exception->getMessage() !== '') - Error: {{ $exception->getMessage() }} - +
+ Error: {!! nl2br(e($exception->getMessage())) !!} +
@endif