ente/cli/pkg/model/errors.go
2024-03-01 12:39:01 +05:30

15 lines
327 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")
}