Skip to content

Commit

Permalink
Revert "add status message when launcher failed (#487)"
Browse files Browse the repository at this point in the history
This reverts commit e597c78.
  • Loading branch information
VonnyJap authored Jan 14, 2025
1 parent 5b24e2d commit 3520b6a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -764,14 +764,13 @@ func launchAction(api screwdriver.API, buildID int, rootDir, emitterPath, metaSp

err, sourceDir, launchShellBin := launch(api, buildID, rootDir, emitterPath, metaSpace, storeURI, uiURI, shellBin, buildTimeout, buildToken, cacheStrategy, pipelineCacheDir, jobCacheDir, eventCacheDir, cacheCompress, cacheMd5Check, isLocal, cacheMaxSizeInMB, cacheMaxGoThreads)
if err != nil {
var errMsg string
errMsg = fmt.Sprintf("Error running launcher: %v", err)
if statusErr, ok := err.(executor.ErrStatus); ok {
errMsg = fmt.Sprintf("Error running launcher due to non-zero exit code: %v", statusErr)
if _, ok := err.(executor.ErrStatus); ok {
log.Printf("Failure due to non-zero exit code: %v\n", err)
} else {
log.Printf("Error running launcher: %v\n", err)
}
log.Println(errMsg)

prepareExit(screwdriver.Failure, buildID, api, metaSpace, errMsg)
prepareExit(screwdriver.Failure, buildID, api, metaSpace, "")
TerminateSleep(launchShellBin, sourceDir, true)
cleanExit()
return nil
Expand Down

0 comments on commit 3520b6a

Please sign in to comment.