Skip to content

Commit 8c49255

Browse files
alingsedeniseschannon
authored andcommitted
fix: check update.Error != nil but return a nil value error err
Signed-off-by: alingse <[email protected]>
1 parent 92765ea commit 8c49255

File tree

1 file changed

+1
-1
lines changed
  • pkg/devspace/build/builder/localregistry

1 file changed

+1
-1
lines changed

pkg/devspace/build/builder/localregistry/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func CopyImageToRemote(ctx context.Context, client dockerclient.Client, imageNam
161161

162162
for update := range progressChan {
163163
if update.Error != nil {
164-
return err
164+
return update.Error
165165
}
166166

167167
status := "Pushing"

0 commit comments

Comments
 (0)