You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
teams-service: cut down "create team" error strings (#1134)
* teams-service: cut down "create team" error strings
There' some decent guidance here: https://github.com/golang/go/wiki/Errors
Error strings should
- start with lowercase
- be specific: if create fails, don't say that create failed
- not end with a period
...because they might be wrapped, as it happens in this case: When this error
bubbles up in the UI, it'll say
> Could not create team: unable to create team: a team with name "..." already exists..
* teams-service: nitpick "purge team subject" error
I've never seen this happen, so we shouldn't sweat it; but
status.Error(codes.Xyz, fmt.Sprintf(..., ...))
should really be
status.Errorf(codes.Xyz, ..., ...)
Signed-off-by: Stephan Renatus <srenatus@chef.io>
0 commit comments