Skip to content

Commit

Permalink
agent: Fix "agent grpc server quits" show wrong error
Browse files Browse the repository at this point in the history
It should show servErr but not err.

Fixes: kata-containers#511

Signed-off-by: Hui Zhu <teawater@hyper.sh>
  • Loading branch information
teawater committed Apr 3, 2019
1 parent 6b7d41a commit 209aa2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ func (s *sandbox) startGRPC() {
// l is closed when Serve() returns
servErr = grpcServer.Serve(l)
if servErr != nil {
agentLog.WithError(err).Warn("agent grpc server quits")
agentLog.WithError(servErr).Warn("agent grpc server quits")
}

err = s.channel.teardown()
Expand Down

0 comments on commit 209aa2f

Please sign in to comment.