Add HTTP error codes to ajax-error

This commit is contained in:
Kane York 2015-06-30 11:39:17 -07:00
parent 951d6ac28f
commit 05010b6b33
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@ function extractError(error) {
}
}
if (!parsedError) {
if (error.status && error.status >= 400) {
parsedError = error.status + " " + error.statusText;
}
}
return parsedError || I18n.t('generic_error');
}