Skip to content

Commit 0e160f2

Browse files
YauhenPylAurearoboquat
authored andcommitted
Update error messages
It seems that the existing error messages are not properly set up.
1 parent eb6fc26 commit 0e160f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: components/image-builder/pkg/builder/builder.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,11 @@ func (b *DockerBuilder) buildWorkspaceImage(ctx context.Context, bld *build, bas
621621
},
622622
}, nil, nil, "detectdist-"+bld.ID)
623623
if err != nil {
624-
return xerrors.Errorf("cannot build workspace image: %w", err)
624+
return xerrors.Errorf("cannot build base image: %w", err)
625625
}
626626
err = b.runContainer(ctx, bld, detectdistContainer.ID)
627627
if err != nil {
628-
return xerrors.Errorf("cannot build workspace image: %w", err)
628+
return xerrors.Errorf("cannot run base image: %w", err)
629629
}
630630

631631
// Run Dockerfile generator
@@ -652,7 +652,7 @@ func (b *DockerBuilder) buildWorkspaceImage(ctx context.Context, bld *build, bas
652652
}
653653
err = b.runContainer(ctx, bld, dfgenContainer.ID)
654654
if err != nil {
655-
return xerrors.Errorf("cannot build workspace image: %w", err)
655+
return xerrors.Errorf("cannot run workspace image: %w", err)
656656
}
657657

658658
// Run build

0 commit comments

Comments
 (0)