From 897c8614518818c03bef155385d1a9657ee4ee6c Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Fri, 3 Feb 2023 14:38:02 -0500 Subject: [PATCH] Remove redundant information in an error message --- monitor/notify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/notify.go b/monitor/notify.go index d939faf..2666355 100644 --- a/monitor/notify.go +++ b/monitor/notify.go @@ -100,7 +100,7 @@ func execScript(ctx context.Context, scriptName string, notif notification) erro } else if isExitError { return fmt.Errorf("script %q terminated by signal with error %q", scriptName, strings.TrimSpace(stderr.String())) } else { - return fmt.Errorf("error executing script %q: %w", scriptName, err) + return fmt.Errorf("error executing script: %w", err) } }