server,cmd: fix error handling

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-07-19 20:37:49 +02:00 committed by Mrunal Patel
parent 90a446e2a5
commit 713bbabc61
2 changed files with 5 additions and 5 deletions

View file

@ -17,14 +17,14 @@ func (s *Server) Version(ctx context.Context, req *pb.VersionRequest) (*pb.Versi
version, err := getGPRCVersion()
if err != nil {
return nil, nil
return nil, err
}
runtimeName := "runc"
runtimeVersion, err := execRuncVersion("runc", "-v")
if err != nil {
return nil, nil
return nil, err
}
runtimeApiVersion := "v1alpha1"