mirror of
https://github.com/ente-io/ente.git
synced 2025-05-28 05:28:05 +00:00
19 lines
437 B
Go
19 lines
437 B
Go
package model
|
|
|
|
import (
|
|
"errors"
|
|
"strings"
|
|
)
|
|
|
|
var ErrDecryption = errors.New("error while decrypting the file")
|
|
var ErrLiveZip = errors.New("error: no image or video file found in zip")
|
|
|
|
func ShouldRetrySync(err error) bool {
|
|
return strings.Contains(err.Error(), "read tcp") ||
|
|
strings.Contains(err.Error(), "dial tcp")
|
|
}
|
|
|
|
func IsBadTimeStampError(err error) bool {
|
|
return strings.Contains(err.Error(), "year outside of range ")
|
|
}
|