summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorAlex Chan <alexc@tailscale.com>2026-03-26 16:43:42 +0000
committerAlex Chan <alex@alexwlchan.net>2026-03-29 09:28:52 +0100
commitedb2be1a0126aecab98c1579dc5ce12ea4942708 (patch)
tree6d05de359e5938b44d9145ff8a6c8627793c37b3 /control/controlhttp/controlhttpserver/controlhttpserver.go
parent069452121af256ff790cf9057b5de66c61749765 (diff)
downloadtailscale-edb2be1a0126aecab98c1579dc5ce12ea4942708.tar.xz
tailscale-edb2be1a0126aecab98c1579dc5ce12ea4942708.zip
cmd/tailscale: improve `tailscale lock` error message if no keys
Previously, running `add/remove/revoke-keys` without passing any keys would fail with an unhelpful error: ```console $ tailscale lock revoke-keys generation of recovery AUM failed: sending generate-recovery-aum: 500 Internal Server Error: no provided key is currently trusted ``` or ```console $ tailscale lock revoke-keys generation of recovery AUM failed: sending generate-recovery-aum: 500 Internal Server Error: network-lock is not active ``` Now they fail with a more useful error: ```console $ tailscale lock revoke-keys missing argument, expected one or more tailnet lock keys ``` Fixes #19130 Change-Id: I9d81fe2f5b92a335854e71cbc6928e7e77e537e3 Signed-off-by: Alex Chan <alexc@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions