Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

437 B
Raw Blame
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 ")
}