Display actual synapse errors (#17)

* Display actual synapse errors

* Show actual errors from dataProvider requests

* update README
This commit is contained in:
Borislav Pantaleev
2024-09-05 21:39:39 +03:00
committed by GitHub
parent fb1a04971b
commit 390aab5ce7
5 changed files with 53 additions and 9 deletions

6
src/components/error.ts Normal file
View File

@@ -0,0 +1,6 @@
export type MatrixError = {
errcode: string;
error: string;
}
export const displayError = (errcode: string, status: number, message: string) => `${errcode} (${status}): ${message}`;