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

Always display error details #932

Merged
merged 3 commits into from
Sep 30, 2022
Merged

Always display error details #932

merged 3 commits into from
Sep 30, 2022

Conversation

nmattia
Copy link
Collaborator

@nmattia nmattia commented Sep 30, 2022

Fixes #928

Before this we'd hide error details behind a <details> element, but all error messages I've seen so far were very short, meaning they'd fit perfectly well on the page.

These changes always show the error message, which makes error pages more consistent and avoid styling issues re. the more dynamic page.

Screenshot 2022-09-30 at 13 00 41

Before this we'd hide error details behind a `<details>` element, but
all error messages I've seen so far were very short, meaning they'd fit
perfectly well on the page.

These changes always show the error message, which makes error pages
more consistent and avoid styling issues re. the more dynamic page.
@frederikrothenberger
Copy link
Contributor

The error detail could also be Resource https://5s2ji-faaaa-aaaaa-qaaaq-cai.ic0.app/.well-known/ii-alternative-origins has too many entries: To prevent misuse at most 10 alternative origins are allowed. or exception texts. So I'm not so sure about them always being short.

Also, the detail is usually technical so for most users the content might not be understandable.

But I don't feel strongly about showing it by default. It might also help developers if users take screenshots of the error messages.

@nmattia nmattia enabled auto-merge (squash) September 30, 2022 14:32
@nmattia nmattia merged commit 1dd08f8 into main Sep 30, 2022
@nmattia nmattia deleted the nm-error-details branch September 30, 2022 14:52
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.

Error details caret is misaligned
2 participants