Update a Taildrop error message (#4818)

ipn/ipnlocal: update error message on Taildrop send while not connected

Signed-off-by: Praneet <1466314+praneetloke@users.noreply.github.com>
This commit is contained in:
Praneet Loke
2022-06-08 09:11:50 -07:00
committed by GitHub
parent d3643fa151
commit d8c05fc1b2
2 changed files with 3 additions and 3 deletions

View File

@@ -3108,7 +3108,7 @@ func (b *LocalBackend) FileTargets() ([]*apitype.FileTarget, error) {
defer b.mu.Unlock()
nm := b.netMap
if b.state != ipn.Running || nm == nil {
return nil, errors.New("not connected")
return nil, errors.New("not connected to the tailnet")
}
if !b.capFileSharing {
return nil, errors.New("file sharing not enabled by Tailscale admin")