Skip to content

Commit

Permalink
Report success or exit code from run step. (#380)
Browse files Browse the repository at this point in the history
* Report success or exit code from run step.

* Editorconfig need not be root.

* change log message

* rollback editorconfig

---------

Co-authored-by: xiantang <[email protected]>
  • Loading branch information
spoulson and xiantang authored Oct 23, 2023
1 parent 7d171bd commit 6554a4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion runner/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,13 @@ func (e *Engine) runBin() error {

_, _ = io.Copy(os.Stdout, stdout)
_, _ = io.Copy(os.Stderr, stderr)
_, _ = cmd.Process.Wait()
state, _ := cmd.Process.Wait()
close(processExit)
if state.ExitCode() == 0 {
e.runnerLog("Process Exit with Code 0")
} else {
e.runnerLog("Process Exit with an error: %v", state.ExitCode())
}

if !e.config.Build.Rerun {
return
Expand Down

0 comments on commit 6554a4a

Please sign in to comment.