Display actual synapse errors (#17)
* Display actual synapse errors * Show actual errors from dataProvider requests * update README
This commit is contained in:
committed by
GitHub
parent
fb1a04971b
commit
390aab5ce7
6
src/components/error.ts
Normal file
6
src/components/error.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export type MatrixError = {
|
||||
errcode: string;
|
||||
error: string;
|
||||
}
|
||||
|
||||
export const displayError = (errcode: string, status: number, message: string) => `${errcode} (${status}): ${message}`;
|
||||
Reference in New Issue
Block a user