mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #58140 from nextcloud/artonge/fix/ignore_abort_error
fix(files): Do not show abort error to the user
This commit is contained in:
commit
d21351701a
3 changed files with 7 additions and 3 deletions
|
|
@ -37,6 +37,10 @@ export function humanizeWebDAVError(error: unknown) {
|
|||
return t('files', 'Storage is temporarily not available')
|
||||
}
|
||||
}
|
||||
// We don't need to show abortion error to the user as those are expected.
|
||||
if (error.name === 'AbortError') {
|
||||
return null
|
||||
}
|
||||
return t('files', 'Unexpected error: {error}', { error: error.message })
|
||||
}
|
||||
|
||||
|
|
|
|||
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue