From 3520b6ac4ffb420bfbfbd6c7e2a04bcc7aca99a0 Mon Sep 17 00:00:00 2001 From: Vonny Jap Date: Tue, 14 Jan 2025 14:35:12 -0800 Subject: [PATCH] Revert "add status message when launcher failed (#487)" This reverts commit e597c7828a538e69c3bfa1dfe806f4188016dcf8. --- launch.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/launch.go b/launch.go index 1406483..7cd4cf2 100644 --- a/launch.go +++ b/launch.go @@ -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