diff options
author | Franck Cuny <franck@fcuny.net> | 2022-06-26 16:43:00 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-06-26 16:44:27 -0700 |
commit | 8f275943f0a0b46488dc7de5dc789fab61faec2d (patch) | |
tree | 7c0d1c4a12842f6f7df66c5333dbfdec8302902c | |
parent | fix(modules/cgit): don't log blackbox exporter requests (diff) | |
download | world-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 '')
-rw-r--r-- | tools/gerrit-hook/main.go | 1 |
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)) |