about summary refs log tree commit diff
path: root/ops/besadii
diff options
context:
space:
mode:
Diffstat (limited to 'ops/besadii')
-rw-r--r--ops/besadii/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ops/besadii/main.go b/ops/besadii/main.go
index b31d3e426ae3..ef4f4fe42489 100644
--- a/ops/besadii/main.go
+++ b/ops/besadii/main.go
@@ -490,14 +490,14 @@ func main() {
 	if bin == "patchset-created" {
 		trigger, err := buildTriggerFromPatchsetCreated(cfg)
 		if err != nil {
-			log.Crit("failed to parse 'patchset-created' invocation from args")
+			log.Crit(fmt.Sprintf("failed to parse 'patchset-created' invocation from args: %v", err))
 			os.Exit(1)
 		}
 		gerritHookMain(cfg, log, trigger)
 	} else if bin == "change-merged" {
 		trigger, err := buildTriggerFromChangeMerged(cfg)
 		if err != nil {
-			log.Crit("failed to parse 'change-merged' invocation from args")
+			log.Crit(fmt.Sprintf("failed to parse 'change-merged' invocation from args: %v", err))
 			os.Exit(1)
 		}
 		gerritHookMain(cfg, log, trigger)