mirror of
https://github.com/rclone/rclone.git
synced 2025-01-20 07:22:46 +08:00
onedrive: make error quotaLimitReached to be fatal - Fixes #4089
This commit is contained in:
parent
d9c8c47e02
commit
9aa32bc269
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)
|
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
|
return retry || fserrors.ShouldRetry(err) || fserrors.ShouldRetryHTTP(resp, retryErrorCodes), err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user