MOBILE-2795 ws: Fix handle exception in ajax request

This commit is contained in:
Dani Palou 2019-01-08 08:20:10 +01:00
parent a709002f7e
commit b8526f585b

View File

@ -261,7 +261,7 @@ export class CoreWSProvider {
data = data[0];
if (data.error) {
return rejectWithError(data);
return rejectWithError(data.exception);
}
return data.data;