From b8526f585b3c47d026bfd739616331ddf96fd202 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 8 Jan 2019 08:20:10 +0100 Subject: [PATCH] MOBILE-2795 ws: Fix handle exception in ajax request --- src/providers/ws.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;