Skip to content

Commit

Permalink
Fix unintended behaviour
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <[email protected]>
  • Loading branch information
kakkoyun committed Mar 25, 2022
1 parent 9a469d5 commit ae7a3cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/debuginfo/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit ae7a3cb

Please sign in to comment.