MCPcopy
hub / github.com/wavetermdev/waveterm / exitCodeFromWaitErr

Function exitCodeFromWaitErr

pkg/blockcontroller/tsunamicontroller.go:438–448  ·  view source on GitHub ↗
(waitErr error)

Source from the content-addressed store, hash-verified

436}
437
438func exitCodeFromWaitErr(waitErr error) int {
439 if waitErr != nil {
440 if exitError, ok := waitErr.(*exec.ExitError); ok {
441 return exitError.ExitCode()
442 } else {
443 return 1
444 }
445 } else {
446 return 0
447 }
448}

Callers 1

StartMethod · 0.70

Calls 1

ExitCodeMethod · 0.65

Tested by

no test coverage detected