From c1479a6221c246d193ababe2b82e3fd27277ce46 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 6 Dec 2021 19:34:48 +0300 Subject: chore(besadii): Improve error messages on parse failure Change-Id: I3cc4637aca8a940a0fdeca2d8bd6ac620ea384c0 --- ops/besadii/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ops/besadii') 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) -- cgit 1.4.1