From 8f275943f0a0b46488dc7de5dc789fab61faec2d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 26 Jun 2022 16:43:00 -0700 Subject: fix(tools/gerrit-hook): exit on error Change-Id: Ia09983533b3527e50eb4c0828d675e72a782c146 Reviewed-on: https://cl.fcuny.net/c/world/+/581 Tested-by: CI Reviewed-by: Franck Cuny --- tools/gerrit-hook/main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/gerrit-hook/main.go b/tools/gerrit-hook/main.go index 5461490..ccd2ad6 100644 --- a/tools/gerrit-hook/main.go +++ b/tools/gerrit-hook/main.go @@ -39,6 +39,7 @@ func main() { log, err := syslog.New(syslog.LOG_INFO|syslog.LOG_USER, "gerrit-hook") if err != nil { fmt.Fprintf(os.Stderr, "failed to open syslog: %s\n", err) + os.Exit(1) } log.Info(fmt.Sprintf("`gerrit-hook' called with arguments: %v\n", os.Args)) -- cgit 1.4.1