Login form: show a better error message.

master
Tom Hacohen 7 years ago
parent 94214c9617
commit 5842b7074a

@ -338,7 +338,7 @@ class BaseNetwork {
if (response.ok) { if (response.ok) {
resolve(body); resolve(body);
} else { } else {
reject(new HTTPError(json.detail)); reject(new HTTPError(json.detail || json.non_field_errors));
} }
}).catch((error) => { }).catch((error) => {
reject(error); reject(error);

Loading…
Cancel
Save