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

Method Value

internal/database/users.go:1511–1523  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1509}
1510
1511func (err ErrNameNotAllowed) Value() string {
1512 val, ok := err.args["name"].(string)
1513 if ok {
1514 return val
1515 }
1516
1517 val, ok = err.args["pattern"].(string)
1518 if ok {
1519 return val
1520 }
1521
1522 return "<value not found>"
1523}
1524
1525func (err ErrNameNotAllowed) Error() string {
1526 return fmt.Sprintf("name is not allowed: %v", err.args)

Callers 11

readAddressMethod · 0.80
SignUpPostFunction · 0.80
SettingsPostFunction · 0.80
CreatePostFunction · 0.80
NewTeamPostFunction · 0.80
SettingsPostFunction · 0.80
ForkPostFunction · 0.80
handleCreateErrorFunction · 0.80
SettingsPostFunction · 0.80
NewUserPostFunction · 0.80
NewContextFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected