Browse Source

compile fix

Signed-off-by: Alex Meijer <ameijer@kubecost.com>
Alex Meijer 2 năm trước cách đây
mục cha
commit
817d4cc6d7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      pkg/customcost/memoryrepository.go

+ 1 - 1
pkg/customcost/memoryrepository.go

@@ -53,7 +53,7 @@ func (m *MemoryRepository) Get(startTime time.Time, domain string) (*pb.CustomCo
 	ccr := &pb.CustomCostResponse{}
 	err := proto.Unmarshal(b, ccr)
 	if err != nil {
-		return nil, fmt.Errorf("error unmarshalling data: %w")
+		return nil, fmt.Errorf("error unmarshalling data: %w", err)
 	}
 	return ccr, nil
 }