From 0466a423ec4885773ed13b581f33e0a6fbb1d30e Mon Sep 17 00:00:00 2001 From: Shane C Date: Thu, 19 Sep 2024 10:57:27 -0400 Subject: [PATCH] add error message to failing commands *facepalm* --- linux/run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/run.go b/linux/run.go index ddc3833..d969176 100644 --- a/linux/run.go +++ b/linux/run.go @@ -192,7 +192,7 @@ func (cmd *LinuxCommand) Run() error { } exitInfo.HasSucceeded = false exitInfo.ExitCode = exitErr.ExitCode() - exitInfo.Error = exitErr.Error() + exitInfo.Error = exitErr.String() err := h.(func(data EventExitData) error)(*exitInfo) if err != nil { return fmt.Errorf("%s: %w", ErrRunningEvt.Error(), err) @@ -206,7 +206,7 @@ func (cmd *LinuxCommand) Run() error { } exitInfo.HasSucceeded = false exitInfo.ExitCode = exitErr.ExitCode() - exitInfo.Error = exitErr.Error() + exitInfo.Error = exitErr.String() err := h.(func(data EventExitData) error)(*exitInfo) if err != nil { return fmt.Errorf("%s: %w", ErrRunningEvt.Error(), err)