From ae7a3cb58258c7402645c3acbbdf3f66c2565433 Mon Sep 17 00:00:00 2001 From: Kemal Akkoyun Date: Fri, 25 Mar 2022 08:34:18 +0100 Subject: [PATCH] Fix unintended behaviour Signed-off-by: Kemal Akkoyun --- pkg/debuginfo/store.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/debuginfo/store.go b/pkg/debuginfo/store.go index 8f7c142ed77..7d5e92cdfa0 100644 --- a/pkg/debuginfo/store.go +++ b/pkg/debuginfo/store.go @@ -286,9 +286,11 @@ func (s *Store) Symbolize(ctx context.Context, m *pb.Mapping, locations ...*meta return nil, fmt.Errorf("failed to check for DWARF: %w", err) } if !hasDWARF { - objFile, err = s.fetchDebuginfodFile(ctx, buildID) + dbgFile, err := s.fetchDebuginfodFile(ctx, buildID) if err != nil { level.Warn(logger).Log("msg", "failed to fetch debuginfod file", "err", err) + } else { + objFile = dbgFile } }