From b83f7969b572c85766ad34285ff504bdd4463f8a Mon Sep 17 00:00:00 2001 From: Jake Runzer Date: Fri, 27 Aug 2021 16:18:03 -0700 Subject: [PATCH] check return value of environment.Configure --- build.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.go b/build.go index 41223d7..6f28864 100644 --- a/build.go +++ b/build.go @@ -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()