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

Add error page for HTTP 400 #627

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alexluckett
Copy link
Contributor

Supports 368034 to present a friendly error rather than JSON if the user changes the URL parameters.

Comment on lines 1 to 2
{% extends 'layouts/page.njk' %}
{% from "govuk/components/button/macro.njk" import govukButton %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slowly trying to switch to double quotes everywhere in Nunjucks

Suggested change
{% extends 'layouts/page.njk' %}
{% from "govuk/components/button/macro.njk" import govukButton %}
{% extends "layouts/page.njk" %}
{% from "govuk/components/button/macro.njk" import govukButton %}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done for a few pages I found

{% call appPageBody({
heading: pageHeading
}) %}
<p class="govuk-body">The service couldn't process your request.</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "process your request" mean to a user?

Watch out for the negative contraction "couldn't" too

Suggested change
<p class="govuk-body">The service couldn't process your request.</p>
<p class="govuk-body">The service could not process your request.</p>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've put the question to Dan, will look to merge this unless they weigh in and let them improve it later.

Copy link

sonarcloud bot commented Dec 12, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants