Skip to content

Commit

Permalink
Merge pull request #5112 from nalind/platform-error
Browse files Browse the repository at this point in the history
Log the platform for build errors during multi-platform builds
  • Loading branch information
openshift-ci[bot] authored Oct 28, 2023
2 parents 9d0b599 + 934c40e commit 575f877
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imagebuildah/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ func BuildDockerfiles(ctx context.Context, store storage.Store, options define.B
}
thisID, thisRef, err := buildDockerfilesOnce(ctx, store, loggerPerPlatform, logPrefix, platformOptions, paths, files)
if err != nil {
if errorContext := strings.TrimSpace(logPrefix); errorContext != "" {
return fmt.Errorf("%s: %w", errorContext, err)
}
return err
}
instancesLock.Lock()
Expand Down

0 comments on commit 575f877

Please sign in to comment.