mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-01 02:41:39 -05:00
Handled unhandled ember ajax errors (#18803)
no refs Handled unhandled ember ajax errors (i.e `406`) so that a friendly error message can be displayed to the user.
This commit is contained in:
parent
df8eeb2249
commit
bb17ef2b02
2 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,7 @@ export function isVersionMismatchError(errorOrStatus, payload) {
|
|||
|
||||
export class DataImportError extends AjaxError {
|
||||
constructor(payload) {
|
||||
super(payload, 'he server encountered an error whilst importing data.');
|
||||
super(payload, 'The server encountered an error whilst importing data.');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,8 @@ const GENERIC_ERROR_NAMES = [
|
|||
'SyntaxError',
|
||||
'TypeError',
|
||||
'URIError',
|
||||
// ember-ajax errors - https://github.com/ember-cli/ember-ajax/blob/master/addon/errors.ts
|
||||
'AjaxError',
|
||||
'ServerError'
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue