Merge pull request #774 from AkihiroSuda/fix-err-checking

execution: properly check container.Exec return value
This commit is contained in:
Derek McGowan authored and GitHub committed 2017-04-28 09:57:04 -07:00
commit 9a798133cf
1 file changed
+3
+3
View File
@@ -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