types/key: use tlpub: in error message (#13707)

Fixes tailscale/corp#19442

Signed-off-by: Erisa A <erisa@tailscale.com>
This commit is contained in:
Erisa A
2024-10-07 17:28:45 +01:00
committed by GitHub
parent cb10eddc26
commit c588c36233
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1448,7 +1448,7 @@ func TestParseNLArgs(t *testing.T) {
name: "disablements not allowed",
input: []string{"disablement:" + strings.Repeat("02", 32)},
parseKeys: true,
wantErr: fmt.Errorf("parsing key 1: key hex string doesn't have expected type prefix nlpub:"),
wantErr: fmt.Errorf("parsing key 1: key hex string doesn't have expected type prefix tlpub:"),
},
{
name: "keys not allowed",