1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 00:10:57 +01:00
phorge-phorge/webroot/rsrc/css
epriestley 08126d3904 Improve top-level exception handling
Summary:
Fixes T6692. Addresses two main issues:

  - The write guard would sometimes not get disposed of on exception pathways, generating an unnecessary secondary error which was just a symptom of the original root error.
    - This was generally confusing and reduced the quality of reports we received because users would report the symptomatic error sometimes instead of the real error.
    - Instead, reflow the handling so that we always dispose of the write guard if we create one.
  - If we missed the Controller-level error page generation (normally, a nice page with full CSS, etc), we'd jump straight to Startup-level error page generation (very basic plain text).
    - A large class of errors occur too early or too late to be handled by Controller-level pages, but many of these errors are not fundamental, and the plain text page is excessively severe.
    - Provide a mid-level simple HTML error page for errors which can't get full CSS, but also aren't so fundamental that we have no recourse but plain text.

Test Plan:
Mid-level errors now produce an intentional-looking error page:

{F259885}

Verified that setup errors still render properly.

@chad, feel free to tweak the exception page -- I just did a rough pass on it. Like the setup error stuff, it doesn't have Celerity, so we can't use `{$colors}` and no other CSS will be loaded.

Reviewers: chad, btrahan

Reviewed By: btrahan

Subscribers: epriestley, chad

Maniphest Tasks: T6692

Differential Revision: https://secure.phabricator.com/D11126
2015-01-02 10:49:27 -08:00
..
aphront Minor indentation fixes 2014-12-30 02:50:01 -08:00
application Improve top-level exception handling 2015-01-02 10:49:27 -08:00
core Do not CC users without permissions to view an object 2015-01-01 08:05:52 -08:00
diviner Support WOFF files in Celerity and add Source Sans Pro 2014-03-06 11:28:24 -08:00
font Update Font Awesome .woff path 2014-11-04 14:54:51 -08:00
layout Minor indentation fixes 2014-12-30 02:50:01 -08:00
phui Minor indentation fixes 2014-12-30 02:50:01 -08:00
sprite-apps-large.css Add Phund app icon 2014-08-11 09:26:41 -07:00
sprite-apps.css Add Phund app icon 2014-08-11 09:26:41 -07:00
sprite-gradient.css Move ActionHeaders to PHUI, add ObjectBox Support, new Colors 2014-06-24 09:39:32 -07:00
sprite-login.css Add new Payment Icons 2014-10-06 13:21:29 -07:00
sprite-main-header.css Multicolor headers 2013-12-06 12:08:11 -08:00
sprite-menu.css Update message and notification icons to use fonts 2014-12-08 13:53:29 -08:00
sprite-projects.css Add an icon+background selector for project images 2013-10-17 09:32:34 -07:00
sprite-tokens.css Add Pebkac app icon, 2x Tokens 2013-11-04 11:50:19 -08:00