diff --git a/api/grpc/server/server.go b/api/grpc/server/server.go index b30081c..f9ff9be 100644 --- a/api/grpc/server/server.go +++ b/api/grpc/server/server.go @@ -124,7 +124,7 @@ func (s *apiServer) State(ctx context.Context, r *types.StateRequest) (*types.St func createAPIContainer(c runtime.Container, getPids bool) (*types.Container, error) { processes, err := c.Processes() if err != nil { - return nil, grpc.Errorf(codes.Internal, "get processes for container") + return nil, grpc.Errorf(codes.Internal, "get processes for container: "+err.Error()) } var procs []*types.Process for _, p := range processes { @@ -148,7 +148,7 @@ func createAPIContainer(c runtime.Container, getPids bool) (*types.Container, er state := c.State() if getPids && (state == runtime.Running || state == runtime.Paused) { if pids, err = c.Pids(); err != nil { - return nil, grpc.Errorf(codes.Internal, "get all pids for container") + return nil, grpc.Errorf(codes.Internal, "get all pids for container: "+err.Error()) } } return &types.Container{