Closed qstokkink closed 1 week ago
@egbertbouman what do you think of cosolidating this to:
{
error: {
handled: boolean,
message: string,
}
}
For the errors with a code
we would port the code
field by including it in the message
. For the errors that currently only have an error message we would put them in a {handled=True, message="previously the 'error' message"}
.
Sounds good to me 👍
Thanks 🙏 I'll give this a go then.
We inconsistently use REST error responses.
2 instances:
3 instances:
52 instances:
This is bad because it causes error handling constructions like this:
https://github.com/Tribler/tribler/blob/6213050af39f9d074914e6007d8d5da8fac38c66/src/tribler/ui/src/dialogs/SaveAs.tsx#L156-L163