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

Function IsErrKeyAlreadyExist

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

Source from the content-addressed store, hash-verified

63}
64
65func IsErrKeyAlreadyExist(err error) bool {
66 _, ok := err.(ErrKeyAlreadyExist)
67 return ok
68}
69
70func (err ErrKeyAlreadyExist) Error() string {
71 return fmt.Sprintf("public key already exists [owner_id: %d, content: %s]", err.OwnerID, err.Content)

Callers 3

SettingsSSHKeysPostFunction · 0.92
SettingsDeployKeysPostFunction · 0.92
HandleAddKeyErrorFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected