ente/cli/pkg/model/errors.go

15 lines
327 B
Go
Raw Normal View History

package model
import (
"errors"
"strings"
)
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")
func ShouldRetrySync(err error) bool {
return strings.Contains(err.Error(), "read tcp") ||
strings.Contains(err.Error(), "dial tcp")
}