MCPcopy Create free account
hub / github.com/gogs/gogs / IsErrKeyNotExist

Function IsErrKeyNotExist

internal/database/error.go:51–54  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

49}
50
51func IsErrKeyNotExist(err error) bool {
52 _, ok := err.(ErrKeyNotExist)
53 return ok
54}
55
56func (err ErrKeyNotExist) Error() string {
57 return fmt.Sprintf("public key does not exist [id: %d]", err.ID)

Callers 2

ListenFunction · 0.92
DeletePublicKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected