mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
Improve logging and error handling (#3059)
* refactor: logging and errror handling
This commit is contained in:
6
templates/access-denied.html.php
Normal file
6
templates/access-denied.html.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<section>
|
||||
<h1>
|
||||
Please authenticate in order to access this instance
|
||||
</h1>
|
||||
</section>
|
||||
|
@@ -1,21 +1,17 @@
|
||||
<section>
|
||||
<p class="exception-message">
|
||||
<?= e($message ?? '') ?>
|
||||
<?= e($message) ?>
|
||||
</p>
|
||||
|
||||
<?php if (isset($stacktrace)): ?>
|
||||
<?php foreach ($stacktrace as $frame): ?>
|
||||
<code>
|
||||
<?= e($frame) ?>
|
||||
</code>
|
||||
<br>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<?php foreach ($trace as $i => $frame) : ?>
|
||||
#<?= $i ?> <?= e(frame_to_call_point($frame)) ?>
|
||||
<br>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<br>
|
||||
|
||||
<p>
|
||||
Query string: <?= e($_SERVER['QUERY_STRING'] ?? '') ?>
|
||||
Query string: <?= e(urldecode($_SERVER['QUERY_STRING']) ?? '') ?>
|
||||
</p>
|
||||
<p>
|
||||
Version: <?= raw(Configuration::getVersion()) ?>
|
||||
@@ -24,26 +20,19 @@
|
||||
OS: <?= raw(PHP_OS_FAMILY) ?>
|
||||
</p>
|
||||
<p>
|
||||
PHP version: <?= raw(phpversion() ?: 'Unknown'()) ?>
|
||||
PHP version: <?= raw(PHP_VERSION ?: 'Unknown') ?>
|
||||
</p>
|
||||
|
||||
<div class="advice">
|
||||
<ul class="advice">
|
||||
<li>Press Return to check your input parameters</li>
|
||||
<li>Press F5 to retry</li>
|
||||
<li>Check if this issue was already reported on <a href="<?= raw($searchUrl) ?>">GitHub</a> (give it a thumbs-up)</li>
|
||||
<li>Open a <a href="<?= raw($issueUrl) ?>">GitHub Issue</a> if this error persists</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<a href="<?= raw($searchUrl) ?>" title="Opens GitHub to search for similar issues">
|
||||
<button>Search GitHub Issues</button>
|
||||
<button>Find similar bugs</button>
|
||||
</a>
|
||||
|
||||
<a href="<?= raw($issueUrl) ?>" title="After clicking this button you can review the issue before submitting it">
|
||||
<button>Open GitHub Issue</button>
|
||||
<button>Create GitHub Issue</button>
|
||||
</a>
|
||||
|
||||
<p class="maintainer"><?= e($bridge->getMaintainer()) ?></p>
|
||||
<p class="maintainer">
|
||||
<?= e($maintainer) ?>
|
||||
</p>
|
||||
</section>
|
||||
|
||||
|
@@ -1,25 +1,35 @@
|
||||
<div style="width: 60%; margin: 30px auto">
|
||||
|
||||
<h1>
|
||||
<?= e($title ?? 'Something went wrong') ?>
|
||||
</h1>
|
||||
<h1>Something went wrong</h1>
|
||||
|
||||
<br>
|
||||
<?= e($message) ?>
|
||||
<br>
|
||||
<br>
|
||||
<p>
|
||||
<?= e($message) ?>
|
||||
</p>
|
||||
|
||||
<?php if (isset($stacktrace)): ?>
|
||||
<h2>Stacktrace</h2>
|
||||
<h2>Stacktrace</h2>
|
||||
|
||||
<?php foreach ($trace as $i => $frame) : ?>
|
||||
<code>
|
||||
#<?= $i ?> <?= e(frame_to_call_point($frame)) ?>
|
||||
</code>
|
||||
<br>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php foreach ($stacktrace as $frame) : ?>
|
||||
<code>
|
||||
<?= e($frame) ?>
|
||||
</code>
|
||||
<br>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<br>
|
||||
|
||||
<h2>Context</h2>
|
||||
|
||||
<p>
|
||||
Query string: <?= e(urldecode($_SERVER['QUERY_STRING'] ?? '')) ?>
|
||||
</p>
|
||||
<p>
|
||||
Version: <?= raw(Configuration::getVersion()) ?>
|
||||
</p>
|
||||
<p>
|
||||
OS: <?= raw(PHP_OS_FAMILY) ?>
|
||||
</p>
|
||||
<p>
|
||||
PHP version: <?= raw(PHP_VERSION ?: 'Unknown') ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user