Skip to content

Commit b61045c

Browse files
committed
Handle unhandled err in installFromBuildLog func
1 parent 1a92bec commit b61045c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/platform/runtime/setup/setup.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,9 @@ func (s *Setup) installFromBuildLog(buildResult *model.BuildResult, artifacts ar
617617
defer cancel()
618618

619619
buildLog, err := buildlog.New(ctx, artifacts, s.eventHandler, *buildResult.Recipe.RecipeID, logFilePath)
620+
if err != nil {
621+
return errs.Wrap(err, "Cannot establish connection with BuildLog")
622+
}
620623
defer func() {
621624
if err := buildLog.Close(); err != nil {
622625
logging.Debug("Failed to close build log: %v", errs.JoinMessage(err))

0 commit comments

Comments
 (0)