From d6f35cb0c83d7f1e1750e35480bc9cc835df2fcc Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Thu, 27 Apr 2017 06:59:31 +0000 Subject: [PATCH] execution: properly check container.Exec return value Signed-off-by: Akihiro Suda --- services/execution/service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/execution/service.go b/services/execution/service.go index 086312a7c..8f4677826 100644 --- a/services/execution/service.go +++ b/services/execution/service.go @@ -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