errors.gno
0.70 Kb · 16 lines
1package gnopm
2
3import "errors"
4
5// Stable, machine-readable error values. Callers (realms, clients, indexers)
6// switch on these rather than on message text: a realm turns them into panics,
7// and the panic string is the only thing a user ever sees.
8var (
9 ErrInvalidPkgPath = errors.New("gnopm: invalid package path")
10 ErrInvalidRepo = errors.New("gnopm: invalid repository URL")
11 ErrInvalidCommit = errors.New("gnopm: invalid commit id")
12 ErrInvalidDir = errors.New("gnopm: invalid directory")
13 ErrInvalidRef = errors.New("gnopm: invalid ref name")
14 ErrClaimNotFound = errors.New("gnopm: no such claim")
15 ErrTooManyClaimants = errors.New("gnopm: too many claimants for this package")
16)