diff --git a/src/providers/ws.ts b/src/providers/ws.ts index 7372bbfff..de16e3103 100644 --- a/src/providers/ws.ts +++ b/src/providers/ws.ts @@ -261,7 +261,7 @@ export class CoreWSProvider { data = data[0]; if (data.error) { - return rejectWithError(data); + return rejectWithError(data.exception); } return data.data;