github.com/stffabi/git-lfs@v2.3.5-0.20180214015214-8eeaa8d88902+incompatible/git/odb/pack/errors.go (about)

     1  package pack
     2  
     3  import "fmt"
     4  
     5  // UnsupportedVersionErr is a type implementing 'error' which indicates a
     6  // the presence of an unsupported packfile version.
     7  type UnsupportedVersionErr struct {
     8  	// Got is the unsupported version that was detected.
     9  	Got uint32
    10  }
    11  
    12  // Error implements 'error.Error()'.
    13  func (u *UnsupportedVersionErr) Error() string {
    14  	return fmt.Sprintf("git/odb/pack: unsupported version: %d", u.Got)
    15  }