mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-20 01:47:33 +00:00
client/systray: add CLI error output if operator is missing
We already show a message in the menu itself, this just adds it to the CLI output as well. Updates #1708 Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d Signed-off-by: Will Norris <will@tailscale.com>
This commit is contained in:
@@ -160,6 +160,17 @@ func (menu *Menu) onReady() {
|
||||
log.Printf("starting")
|
||||
setAppIcon(disconnected)
|
||||
menu.rebuild()
|
||||
|
||||
menu.mu.Lock()
|
||||
if menu.readonly {
|
||||
fmt.Fprintln(os.Stderr, `
|
||||
No permission to manage Tailscale. Set operator by running:
|
||||
|
||||
sudo tailscale set --operator=$USER
|
||||
|
||||
See https://tailscale.com/s/cli-operator for more information.`)
|
||||
}
|
||||
menu.mu.Unlock()
|
||||
}
|
||||
|
||||
// updateState updates the Menu state from the Tailscale local client.
|
||||
|
Reference in New Issue
Block a user