if error is not NULL,return error

This commit is contained in:
liuan
2021-10-21 17:23:42 +08:00
parent 744233b3a3
commit 8657cd31b2

View File

@@ -97,7 +97,7 @@ func Run(s *options.ServerRunOptions, ctx context.Context) error {
err = apiserver.PrepareRun(ctx.Done())
if err != nil {
return nil
return err
}
return apiserver.Run(ctx)