Skip to content

Commit b6b8fac

Browse files
authored
Merge pull request containerd#6272 from jonyhy96/fix-error-return
2 parents 1a88cf5 + fa6759a commit b6b8fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/containerd/command/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ can be used and modified as necessary as a custom configuration.`
219219
return ctx.Err()
220220
case r := <-chsrv:
221221
if r.err != nil {
222-
return err
222+
return r.err
223223
}
224224
server = r.s
225225
}

0 commit comments

Comments
 (0)