cthit / cthit/chalmers.it

As an avid news publisher, I want descriptive error messages, so that I can understand what went wrong

Open
#199 3 comments 0 reactions 0 assignees View on GitHub
suggestion
Dominant language
TypeScript
Stars
5
Forks
5
Avg merge
6h 45m
Merged PRs (30d)
3

Description

### 📝 Description

While publishing news today I noticed that it can be incredibly hard understanding what went wrong with a news upload, as of now, the page logs in portainer what went wrong, but for the graphical user it is annoying or impossible to access these messages, and quite frustrating figuring out why something fails.

The text given to the user right now is always something similar to "Something went wrong", and if inspecting the request, a cryptive text is sent from the backend ( in my case this: C83xQyOEPhn9Ysssr9rgS).

Displaying the error message to the user will make the application more user friendly, and decrease the number of questions digIT receives regarding "why do I get an error when posting this".

### ✅ Acceptance Criteria

- [ ] Send the description of the error message to the frontend
- [ ] Display the description in the toast, alternatively show the description when a user interacts with the toast

### 💡 Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.