server,cmd: fix error handling
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
90a446e2a5
commit
713bbabc61
2 changed files with 5 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue