Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[debuginfo] No error in functions iterator on name errors #201

Merged
merged 3 commits into from
Apr 1, 2020

Conversation

calixteman
Copy link
Contributor

It aims to fix: #195

@calixteman calixteman requested a review from a team March 30, 2020 09:44
Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!


let function = Function {
address: function_address,
size: function_size,
name: Name::with_language(name.unwrap_or_default(), self.language),
name: Name::with_language(
name.unwrap_or_else(|| Cow::from("<name omitted>")),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you leave this an empty string and coerce in the caller? We rely on this being empty in Sentry since we show our own placeholders which have semantic meaning.

let file = self
.resolve_file(row.file_index)
.ok()
.flatten()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since both usages now only require an option, can you change the function signature to Option<FileInfo>?

Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[debuginfo] Don't return an error when it isn't possible to resolve a name
3 participants