Skip to content

pretty errors #327

@simonLeary42

Description

@simonLeary42

Our HTTP API constraints make it difficult to display alerts to the user without a fatal error. This commit needs to be reverted.

  • header.php should check the current session for stored alerts and display them
  • errorToUser() should should store an alert in the session rather than displaying HTML
  • UnityConfig.site.enable_error_to_user should be removed
  • badRequest() and internalServerError() should issue a redirect to clear POST data and display alerts, rather than dying
  • forbidden() and redirect() should display HTML instead of calling errorToUser(), and still die
  • UnityHTTPD::alert should be removed

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions