mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
f82adbf0c8
Summary: Ref T11589. When we hit a fatal setup issue (essentially always a connection failure) //after// we've already survived them on at least one request, we can be pretty sure a server went down and that the problem is not a setup/configuration issue. In this case, show a friendlier error page instead of the fairly detailed technical one. Test Plan: - Broke MySQL config. - Restarted Apache. - Got the "admin/setup" error page: {F1803268} - Fixed the MySQL config. - Loaded any page, to put us "in flight". - Broke MySQL config. - Loaded any page. - Got the friendly "in flight" error page: {F1803271} If you want to design this better, easiest way to get to it is: - Set `mysql.port` to `9999` in `conf/local/local.json`. - Reload any page while already running (don't restart). Reviewers: chad Reviewed By: chad Maniphest Tasks: T11589 Differential Revision: https://secure.phabricator.com/D16503
37 lines
694 B
CSS
37 lines
694 B
CSS
/**
|
|
* @provides phabricator-fatal-config-template-css
|
|
*/
|
|
body {
|
|
overflow-y: scroll;
|
|
background: #f9f9f9;
|
|
margin: 0;
|
|
padding: 0;
|
|
font: 13px/1.231 'Segoe UI', 'Segoe UI Web Regular', 'Segoe UI Symbol',
|
|
'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
text-align: left;
|
|
-webkit-text-size-adjust: none;
|
|
}
|
|
|
|
body.in-flight {
|
|
background: #41506e;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.in-flight-error-detail {
|
|
max-width: 760px;
|
|
margin: 72px auto;
|
|
background: rgba(255, 255, 255, 0.25);
|
|
border-radius: 3px;
|
|
padding: 8px 16px;
|
|
}
|
|
|
|
.in-flight-error-title {
|
|
padding: 12px 8px;
|
|
font-size: 24px;
|
|
font-weight: 500;
|
|
margin: 0;
|
|
}
|
|
|
|
.in-flight-error-body {
|
|
padding: 4px 12px 12px;
|
|
}
|