tailcfg: improve error returned by Hostinfo.CheckRequestTags

That's what I get for pushing too fast.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder 2020-11-03 16:19:20 -08:00
parent fb9f80cd61
commit 946c1edb42
1 changed files with 2 additions and 3 deletions

View File

@ -264,9 +264,8 @@ func (h *Hostinfo) CheckRequestTags() error {
return nil
}
for _, tag := range h.RequestTags {
err := CheckTag(tag)
if err != nil {
return err
if err := CheckTag(tag); err != nil {
return fmt.Errorf("tag(%#v): %w", tag, err)
}
}
return nil