aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html.php1
-rw-r--r--templates/bridge-error.html.php43
-rw-r--r--templates/error.html.php22
3 files changed, 60 insertions, 6 deletions
diff --git a/templates/base.html.php b/templates/base.html.php
index 9e0cc7ca..39442706 100644
--- a/templates/base.html.php
+++ b/templates/base.html.php
@@ -15,3 +15,4 @@
<?= raw($page) ?>
</html>
+
diff --git a/templates/bridge-error.html.php b/templates/bridge-error.html.php
new file mode 100644
index 00000000..51711c9f
--- /dev/null
+++ b/templates/bridge-error.html.php
@@ -0,0 +1,43 @@
+<section>
+ <p class="exception-message">
+ <?= e($message ?? '') ?>
+ </p>
+
+ <?php if (isset($stacktrace)): ?>
+ <?php foreach ($stacktrace as $frame): ?>
+ <code>
+ <?= e($frame) ?>
+ </code>
+ <br>
+ <?php endforeach; ?>
+ <?php endif; ?>
+
+ <br>
+
+ <p>
+ Query string: <?= e($_SERVER['QUERY_STRING'] ?? '') ?>
+ </p>
+ <p>
+ Version: <?= e(Configuration::getVersion()) ?>
+ </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>
+ </a>
+
+ <a href="<?= raw($issueUrl) ?>" title="After clicking this button you can review the issue before submitting it">
+ <button>Open GitHub Issue</button>
+ </a>
+
+ <p class="maintainer"><?= e($bridge->getMaintainer()) ?></p>
+</section>
+
diff --git a/templates/error.html.php b/templates/error.html.php
index 4664b51d..db2f233f 100644
--- a/templates/error.html.php
+++ b/templates/error.html.php
@@ -1,9 +1,19 @@
-<section>
- <h2>Something went wrong</h2>
+<div style="width: 60%; margin: 30px auto">
+
+ <h1>Something went wrong</h1>
+ <br>
+ <?= e($message) ?>
<br>
+ <br>
+
+ <?php if (isset($stacktrace)): ?>
+ <?php foreach ($stacktrace as $frame) : ?>
+ <code>
+ <?= e($frame) ?>
+ </code>
+ <br>
+ <?php endforeach; ?>
+ <?php endif; ?>
- <p>
- <?= e($message) ?>
- </p>
+</div>
-</section>