Skip to content

Commit b11a4ff

Browse files
author
Mark Randall
committed
Ultimate trycatch of ultimate destiny.
1 parent 52bdb77 commit b11a4ff

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

landing.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use phpweb\Navigation\NavCardItem;
44
use phpweb\News\NewsHandler;
55

6+
try {
67
(function ($uri): void {
78
// Special redirect cases not able to be captured in error.php
89
$shortcuts = [
@@ -124,9 +125,6 @@ function buildNavCard(NavCardItem $card, array $config = []): string
124125
</div>
125126
<?php } ?>
126127
</div>
127-
<!-- <div style="flex: 0 0 48px; padding: 0.5em; display: flex; align-items: center">-->
128-
<!-- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" fill="#aaaaaa">!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.<path d="M471.1 297.4C483.6 309.9 483.6 330.2 471.1 342.7L279.1 534.7C266.6 547.2 246.3 547.2 233.8 534.7C221.3 522.2 221.3 501.9 233.8 489.4L403.2 320L233.9 150.6C221.4 138.1 221.4 117.8 233.9 105.3C246.4 92.8 266.7 92.8 279.2 105.3L471.2 297.3z"/></svg>-->
129-
<!-- </div>-->
130128
</a>
131129
<?php
132130
return ob_get_clean();
@@ -479,3 +477,7 @@ function drawBranchInfo(array $release): void
479477
'include_section' => false,
480478
"atom" => "/feed.atom", // Add a link to the feed at the bottom
481479
]);
480+
} catch (Throwable $e) {
481+
http_response_code(500);
482+
die((string)$e);
483+
}

0 commit comments

Comments
 (0)