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

Function IsErrKeyNameAlreadyUsed

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

Source from the content-addressed store, hash-verified

77}
78
79func IsErrKeyNameAlreadyUsed(err error) bool {
80 _, ok := err.(ErrKeyNameAlreadyUsed)
81 return ok
82}
83
84func (err ErrKeyNameAlreadyUsed) Error() string {
85 return fmt.Sprintf("public key already exists [owner_id: %d, name: %s]", err.OwnerID, err.Name)

Callers 3

SettingsSSHKeysPostFunction · 0.92
SettingsDeployKeysPostFunction · 0.92
HandleAddKeyErrorFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected