mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
cmd/gitops-pusher: use fmt.Println for errors (#5112)
Signed-off-by: Xe <xe@tailscale.com>
This commit is contained in:
parent
43f3a969ca
commit
41e60dae80
@ -64,7 +64,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := applyNewACL(ctx, tailnet, apiKey, *policyFname, controlEtag); err != nil {
|
if err := applyNewACL(ctx, tailnet, apiKey, *policyFname, controlEtag); err != nil {
|
||||||
log.Fatal(err)
|
fmt.Println(err)
|
||||||
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
case "test":
|
case "test":
|
||||||
@ -87,7 +88,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := testNewACLs(ctx, tailnet, apiKey, *policyFname); err != nil {
|
if err := testNewACLs(ctx, tailnet, apiKey, *policyFname); err != nil {
|
||||||
log.Fatal(err)
|
fmt.Println(err)
|
||||||
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
log.Fatalf("usage: %s [options] <test|apply>", os.Args[0])
|
log.Fatalf("usage: %s [options] <test|apply>", os.Args[0])
|
||||||
@ -191,7 +193,7 @@ func testNewACLs(ctx context.Context, tailnet, apiKey, policyFname string) error
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var lineColMessageSplit = regexp.MustCompile(`^line ([0-9]+), column ([0-9]+): (.*)$`)
|
var lineColMessageSplit = regexp.MustCompile(`line ([0-9]+), column ([0-9]+): (.*)$`)
|
||||||
|
|
||||||
type ACLTestError struct {
|
type ACLTestError struct {
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
|
Loading…
Reference in New Issue
Block a user