Errors
An error says what did not happen and what you can do now, in the place where it happened. It blames nobody and keeps whatever you already entered.
Where the error goes
A field the form cannot accept
An error under that field.
An action that did not go through
An error toast with Try again.
A page that did not load
The error in place of the content, with Try again.
This page did not load.
Part of a list that did not load
A warning band above the part that loaded.
Some notifications did not load.
- Ana Horvat9:42
- Marko Babić9:15
A condition that stops the page
An error inline message at the top, with the fix.
Your session has ended. Sign in again to keep working.
- Sita Gurung
- Ram Thapa
A failure inside an open dialog
An inline message at the top of the dialog.
Add candidate
The candidate was not saved. Check your connection and try again.
The error in place
When a list or a panel cannot load, its area holds one sentence and a Try again button, laid out like an empty state. The toolbar stays, and the sentence keeps the normal ink: a whole area in red alarms more than it informs.
The candidate list did not load.
- Sentence
- Same size as an empty state, in the normal text color
- --text
- Action
- Secondary button, Try again
- --surface-control
Writing the message
The offer did not load.
What did not happen, naming the thing
Try again.
What you can do now
Say what did not happen and name the thing: “The offer did not load.” Then say what to do: “Try again.” Give the cause only when it helps you act: “The job board did not answer. Try again in a moment.”
Write about the thing, not the person. “Enter the date as day, month and year” helps you fix it. “You entered an invalid date” accuses you.
Leave out apologies and exclamation marks, and keep codes out of the sentence. When support needs a reference, it goes on its own line after the sentence, where you can copy it.
Recovery
Keep what you entered. A failed save leaves the form filled, and an offer that was not sent keeps what you wrote.
Offer Try again only when trying again can work. When it cannot, name what can: “This file is too large to attach. Share it from Drive instead.”
After a form fails to submit, focus moves to the message at the top of the form, which links to each field to correct.
Accessibility
An error that appears after you act is announced once, as an alert. An error present when a page loads is read in its place. The sentence names the problem, so color is not the only signal.
Permitted and not permitted
Permitted
The offer was not sent. Try again.
What did not happen, then the next step.
Could not reach the server. Nothing was sent.
Tells you where things stand.
Not permitted
Something went wrong.
Names nothing and offers nothing.
Invalid input
Says neither which input nor what would be accepted.
Oops! Error 500
A joke and a code, and no way forward.