Homestyx hydra
Diffusion hydra e03079aaaad2

Try harder to present display/rendering exceptions to the user using standard…

Description

Try harder to present display/rendering exceptions to the user using standard exception handling

Summary:
Ref T13250. When exceptions occur in display/rendering/writing, they currently go straight to the fallback handler. This is a minimal handler which doesn't show a stack trace or include any debugging details.

In some cases, we have to do this: some of these exceptions prevent us from building a normal page. For example, if the menu bar has a hard fatal in it, we aren't going to be able to build a nice exception page with a menu bar no matter how hard we try.

However, in many cases the error is mundane: something detected something invalid and raised an exception during rendering. In these cases there's no problem with the page chrome or the rendering pathway itself, just with rendering the page data.

When we get a rendering/response exception, try a second time to build a nice normal exception page. This will often work. If it doesn't work, fall back as before.

Test Plan:

  • Forced the error from T13250 by applying D20136 but not D20134.
  • Before:

{F6205001}

  • After:

{F6205002}

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13250

Differential Revision: https://secure.phabricator.com/D20137

Details

Provenance
epriestleyAuthored on Feb 11 2019, 12:32 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:1275326ea6b6: Use "phutil_string_cast()" in TypeaheadDatasource
Branches
Unknown
Tags
Unknown

Event Timeline