git-lfs/git/odb/pack/errors.go
2017-07-15 13:15:13 -06:00

16 lines
415 B
Go

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("git/odb/pack: unsupported version: %d", u.Got)
}