Skip to content

Commit

Permalink
Update application.go
Browse files Browse the repository at this point in the history
Co-authored-by: David O'Sullivan <[email protected]>
  • Loading branch information
sambhav and pivotal-david-osullivan authored Sep 6, 2022
1 parent 37ac145 commit dc050d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (a Application) Contribute(layer libcnb.Layer) (libcnb.Layer, error) {
excludeDirs, eset := a.ArtifactResolver.ConfigurationResolver.Resolve("BP_EXCLUDE_FILES")
if excludeDirs != "" {
if err := logic.Exclude(a.ApplicationPath, excludeDirs); err != nil {
return libcnb.Layer{}, err
return libcnb.Layer{}, fmt.Errorf("unable to perform source-removal 'exclude' \n%w", err)
}
}
// if the source remvoval env vars are all unset and the default values are all empty
Expand Down

0 comments on commit dc050d4

Please sign in to comment.