Explorar el Código

Fix slight bug in error handling

Guillaume Tardif hace 5 años
padre
commit
1c94893d2f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      server/proxy/containers.go

+ 1 - 1
server/proxy/containers.go

@@ -34,7 +34,7 @@ func (p *proxyContainerAPI) List(ctx context.Context, request *v1.ListRequest) (
 
 	c, err := client.ContainerService().List(ctx, request.GetAll())
 	if err != nil {
-		return &v1.ListResponse{}, nil
+		return &v1.ListResponse{}, err
 	}
 
 	response := &v1.ListResponse{