Skip to main content

Error messages

A good error message says what happened and what you can do – without blame, without technology.

Instead ofBetter
Error 413The file is larger than 95 MB.
Request failedNo connection. Try again in a moment.
Invalid inputGive the course a name.
UnauthorizedYou have been signed out. Sign in again.
ForbiddenOnly editors can upload here.

Where what appears​

KindComponent
about a fielderror on the field
when saving, loading, uploadingNotice tone="danger" in place, with "Try again"
in the confirm dialogappears in the ConfirmDialog itself
a whole page is missingEmptyState with fehler and a way back
on the side, not importanttoast(…, "danger")
Result
Loading...
Live Editor
<div className="ui-stack" style={{ maxWidth: 480 }}>
  <Notice tone="danger" title="Not saved" action={<Button size="sm">Try again</Button>}>
    No connection to the server.
  </Notice>
  <EmptyState size="sm" illustration="fehler" title="This course no longer exists" actions={<Button icon="arrow-left">To your courses</Button>}>
    Maybe it was deleted or you are no longer a member.
  </EmptyState>
</div>