Skip to content

Commit

Permalink
check return value of environment.Configure
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Aug 27, 2021
1 parent 399b084 commit b83f796
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ func Build(environment Environment, logger scribe.Logger) packit.BuildFunc {
layer, err := context.Layers.Get("nodeconfig")
if err != nil {
return packit.BuildResult{}, err

}

environment.Configure(layer.BuildEnv)
err = environment.Configure(layer.BuildEnv)
if err != nil {
return packit.BuildResult{}, err
}

logger.Break()

Expand Down

0 comments on commit b83f796

Please sign in to comment.