forked from TrueCloudLab/rclone
onedrive: make error quotaLimitReached to be fatal - Fixes #4089
This commit is contained in:
parent
d9c8c47e02
commit
9aa32bc269
1 changed files with 2 additions and 0 deletions
2
backend/onedrive/onedrive.go
Normal file → Executable file
2
backend/onedrive/onedrive.go
Normal file → Executable file
|
@ -436,6 +436,8 @@ func shouldRetry(resp *http.Response, err error) (bool, error) {
|
|||
fs.Debugf(nil, "Too many requests. Trying again in %d seconds.", retryAfter)
|
||||
}
|
||||
}
|
||||
case 507: // Insufficient Storage
|
||||
return false, fserrors.FatalError(err)
|
||||
}
|
||||
}
|
||||
return retry || fserrors.ShouldRetry(err) || fserrors.ShouldRetryHTTP(resp, retryErrorCodes), err
|
||||
|
|
Loading…
Add table
Reference in a new issue