about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-06-26 16:43:00 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-26 16:44:27 -0700
commit8f275943f0a0b46488dc7de5dc789fab61faec2d (patch)
tree7c0d1c4a12842f6f7df66c5333dbfdec8302902c /tools
parentfix(modules/cgit): don't log blackbox exporter requests (diff)
downloadworld-8f275943f0a0b46488dc7de5dc789fab61faec2d.tar.gz
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 <franck@fcuny.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/gerrit-hook/main.go1
1 files changed, 1 insertions, 0 deletions
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))