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)