Do not repair invalid download code error
This commit is contained in:
@@ -9,6 +9,13 @@ func IsBytesLimitReached(err error) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func IsInvalidDownloadCode(err error) bool {
|
||||
if dlErr, ok := err.(*http.DownloadErrorResponse); ok && dlErr.Message == "invalid_download_code" {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func AreAllTokensExpired(err error) bool {
|
||||
return err != nil && err.Error() == "all tokens are expired"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user