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

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