about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
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))