Skip to content

Commit bcdd5c4

Browse files
committed
address comments
1 parent 1e86c5f commit bcdd5c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

toolkit/tools/pkg/imagecustomizerlib/cosicommon.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ func buildCosiFile(sourceDir string, outputFile string, partitions []outputParti
178178
}
179179

180180
func addToCosi(data ImageBuildData, tw *tar.Writer) error {
181-
addFileToCosi(tw, data.Source, data.Metadata.Image)
181+
err := addFileToCosi(tw, data.Source, data.Metadata.Image)
182+
if err != nil {
183+
return fmt.Errorf("failed to add image file to COSI:\n%w", err)
184+
}
182185

183186
if data.VeritySource != "" && data.Metadata.Verity != nil {
184187
err := addFileToCosi(tw, data.VeritySource, data.Metadata.Verity.Image)

0 commit comments

Comments
 (0)