2023-10-18 06:52:28 +00:00
|
|
|
package model
|
|
|
|
|
2023-10-30 03:04:22 +00:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
"strings"
|
|
|
|
)
|
2023-10-18 06:52:28 +00:00
|
|
|
|
|
|
|
var ErrDecryption = errors.New("error while decrypting the file")
|
2023-12-04 04:50:11 +00:00
|
|
|
var ErrLiveZip = errors.New("error: no image or video file found in zip")
|
2023-10-30 03:04:22 +00:00
|
|
|
|
|
|
|
func ShouldRetrySync(err error) bool {
|
|
|
|
return strings.Contains(err.Error(), "read tcp") ||
|
|
|
|
strings.Contains(err.Error(), "dial tcp")
|
|
|
|
}
|