File: errors.go

package info (click to toggle)
golang-github-git-lfs-gitobj 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 432 kB
  • sloc: makefile: 2; sh: 1
file content (15 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package pack

import "fmt"

// UnsupportedVersionErr is a type implementing 'error' which indicates a
// the presence of an unsupported packfile version.
type UnsupportedVersionErr struct {
	// Got is the unsupported version that was detected.
	Got uint32
}

// Error implements 'error.Error()'.
func (u *UnsupportedVersionErr) Error() string {
	return fmt.Sprintf("gitobj/pack: unsupported version: %d", u.Got)
}