Skip to content
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

fix: Show error page even when routing fails #18437

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

ankush
Copy link
Member

@ankush ankush commented Oct 17, 2022

since frappe.local.path is not set when routing itself failed for some reason we dont even get error page.

This minor change lets us see the error at least.

Before: internal server error (nginx shows its own error page)

After:

image

Works even if the resolver doesn't run at all:

image

@ankush ankush added the backport version-14-hotfix backport to version 14 label Oct 17, 2022
@ankush ankush requested review from a team and phot0n and removed request for a team October 17, 2022 14:17
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label Oct 17, 2022
@ankush ankush removed the add-test-cases Add test case to validate fix or enhancement label Oct 17, 2022
@ankush ankush merged commit cc72dc4 into frappe:develop Oct 17, 2022
@ankush ankush deleted the error_better branch October 17, 2022 14:22
mergify bot pushed a commit that referenced this pull request Oct 17, 2022
ankush added a commit that referenced this pull request Oct 17, 2022
(cherry picked from commit cc72dc4)

Co-authored-by: Ankush Menat <ankush@frappe.io>
frappe-pr-bot pushed a commit that referenced this pull request Oct 18, 2022
# [14.12.0](v14.11.1...v14.12.0) (2022-10-18)

### Bug Fixes

* add flags to set_permission for docshares ([#18416](#18416)) ([#18429](#18429)) ([a2ba0aa](a2ba0aa))
* correct import for markupsafe.escape ([c2f1c57](c2f1c57))
* **dx:** resolve_class ([#18417](#18417)) ([#18421](#18421)) ([c47de0d](c47de0d))
* explicitly set doctype in queries ([#18403](#18403)) ([#18405](#18405)) ([6848ee9](6848ee9))
* format currency value as float while grid upload ([5eb803c](5eb803c))
* google calendar sync times ([#18384](#18384)) ([#18394](#18394)) ([7c9ee6d](7c9ee6d))
* Notifications. Get Alerts for Today button [#18423](#18423) ([#18428](#18428)) ([63e3c61](63e3c61))
* progress bar not disappearing ([#18375](#18375)) ([#18392](#18392)) ([e0d6d0b](e0d6d0b))
* reshuffle __newname field to accommodate under 1st Tab Break ([#18406](#18406)) ([#18427](#18427)) ([f833e5d](f833e5d))
* Show error page even when routing fails ([#18437](#18437)) ([#18438](#18438)) ([5d3e97a](5d3e97a))
* **UI:** child table custom horizontal scroll ([ec09123](ec09123))
* **UI:** Child table responsive ([cb866f9](cb866f9))
* **UI:** consider 2px border at grid end ([c85fb2d](c85fb2d))
* **UI:** lesser margin if cell is focused ([f3ad63a](f3ad63a))

### Features

* allow syncing new fields in Doctype Layout ([#18408](#18408)) ([c73e2e2](c73e2e2))
* search in translated title, if we show title ([#17828](#17828)) ([#18395](#18395)) ([73758d7](73758d7))

### Performance Improvements

* Perform `db.set_value` with single query only (backport [#18305](#18305)) ([#18349](#18349)) ([23caa1f](23caa1f))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant