about summary refs log tree commit diff
path: root/ops/besadii
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-12-06T16·34+0300
committertazjin <mail@tazj.in>2021-12-07T18·27+0000
commitc1479a6221c246d193ababe2b82e3fd27277ce46 (patch)
tree08ca72169dbdecfc9dcae09feeb014d031fe42d3 /ops/besadii
parent8a944484f0d28bc372ead0842780fe697f997f5e (diff)
chore(besadii): Improve error messages on parse failure r/3150
Change-Id: I3cc4637aca8a940a0fdeca2d8bd6ac620ea384c0
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)