add error message to failing commands *facepalm*
This commit is contained in:
parent
88c55d3d73
commit
0466a423ec
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue