diff --git a/cmd/mothd/state.go b/cmd/mothd/state.go index 718371e..d9da27b 100644 --- a/cmd/mothd/state.go +++ b/cmd/mothd/state.go @@ -522,6 +522,9 @@ func (ds *DevelState) TeamName(teamID string) (string, error) { if name, err := ds.StateProvider.TeamName(teamID); err == nil { return name, nil } + if teamID == "" { + return "", fmt.Errorf("Empty team ID") + } return fmt.Sprintf("«devel:%s»", teamID), nil }