pack/errors.go
raw| 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("gitobj/pack: unsupported version: %d", u.Got) |
| 15 | } |