mirror of
https://github.com/containerd/containerd.git
synced 2026-11-08 06:16:50 +00:00
Merge pull request #774 from AkihiroSuda/fix-err-checking
execution: properly check container.Exec return value
This commit is contained in:
commit
9a798133cf
1 file changed
+3
@@ -220,6 +220,9 @@ func (s *Service) Exec(ctx context.Context, r *api.ExecRequest) (*api.ExecRespon
|
||||
Terminal: r.Terminal,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
state, err := process.State(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user