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:
Louis 2026-02-11 15:03:02 +01:00 committed by GitHub
commit d21351701a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View file

@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long