diff --git a/src/api/EteSync.ts b/src/api/EteSync.ts index a05cc89..45fd0e6 100644 --- a/src/api/EteSync.ts +++ b/src/api/EteSync.ts @@ -338,7 +338,7 @@ class BaseNetwork { if (response.ok) { resolve(body); } else { - reject(new HTTPError(json.detail)); + reject(new HTTPError(json.detail || json.non_field_errors)); } }).catch((error) => { reject(error);