mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
fix(files): Do not show abort error to the user
Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
parent
615d343d96
commit
a4f396e648
1 changed files with 4 additions and 0 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 })
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue