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

Function IsErrUserAlreadyExist

internal/database/users.go:258–260  ·  view source on GitHub ↗

IsErrUserAlreadyExist returns true if the underlying error has the type ErrUserAlreadyExist.

(err error)

Source from the content-addressed store, hash-verified

256// IsErrUserAlreadyExist returns true if the underlying error has the type
257// ErrUserAlreadyExist.
258func IsErrUserAlreadyExist(err error) bool {
259 return errors.As(err, &ErrUserAlreadyExist{})
260}
261
262func (err ErrUserAlreadyExist) Error() string {
263 return fmt.Sprintf("user already exists: %v", err.args)

Callers 8

InstallPostFunction · 0.92
SignUpPostFunction · 0.92
SettingsPostFunction · 0.92
CreatePostFunction · 0.92
SettingsPostFunction · 0.92
CreateOrgForUserFunction · 0.92
CreateUserFunction · 0.92
NewUserPostFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected