Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Return early on build bootstrap errors
Browse files Browse the repository at this point in the history
We cannot proceed if there was an error bootstrapping the build
directories.
  • Loading branch information
agis committed Sep 26, 2018
1 parent 9d56a47 commit 828eddc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/mistryd/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func (s *Server) Work(ctx context.Context, j *Job) (buildInfo *types.BuildInfo,
err = j.BootstrapBuildDir(s.cfg.FileSystem)
if err != nil {
err = workErr("could not bootstrap build dir", err)
return
}

// moves the pending directory to the ready one
Expand Down

0 comments on commit 828eddc

Please sign in to comment.