fix(files): Do not show abort error to the user

Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
Louis Chmn 2026-02-06 18:04:18 +01:00 committed by nextcloud-command
parent 615d343d96
commit a4f396e648

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 })
}