-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(platform): refer to platform status in error pages #442
Conversation
@@ -7,13 +7,14 @@ | |||
\WBStack\Info\GlobalSet::forDomain($_SERVER['SERVER_NAME']); | |||
} catch (\WBStack\Info\GlobalSetException $ex) { | |||
http_response_code($ex->getCode()); | |||
echo "You have requested the domain: " . $_SERVER['SERVER_NAME'] . ". But that wiki can not currently be loaded.".PHP_EOL; | |||
echo "You have requested the domain: " . $_SERVER['SERVER_NAME'] . ". But that wiki can not currently be loaded.<br/>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replacing PHP_EOL
with <br>
is a drive by fix as I noticed this currently did not work as intended.
} | ||
echo $ex->getMessage(); | ||
echo $ex->getMessage()."<br/>"; | ||
echo "You can check the platform status at <a href=\"https://status.wikibase.cloud\">status.wikibase.cloud</a><br/>."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means we'll also display the link on 404 (expected) responses, but I guess that's ok?
dist/wbstack/src/Shim/Web.php
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a few <br/>.
which you might want to swap out with .<br/>
.
Ticket https://phabricator.wikimedia.org/T365492