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

profiling: fix sample types error message #185

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

gleocadie
Copy link
Contributor

What does this PR do?

This PR fixes the error message which can be misleading when investigating issues.

Motivation

If you create a profile with 2 samples types and add a sample with 3 sample types, you will get this error message:

expected 3 sample types, but sample had 2 sample types

But, it's not correct, we should have got:

expected 2 sample types, but sample had 3 sample types

Additional Notes

N/A

How to test the change?

N/A

@gleocadie gleocadie requested a review from a team as a code owner June 28, 2023 15:22
@github-actions github-actions bot added the profiling Relates to the profiling* modules. label Jun 28, 2023
@morrisonlevi morrisonlevi changed the title Fix error message profiling: fix sample types error message Jun 28, 2023
@ivoanjo
Copy link
Member

ivoanjo commented Jun 28, 2023

CI is complaining due to #183

@gleocadie
Copy link
Contributor Author

CI is complaining due to #183

Will wait for you ;) (no pressure ;) )

Copy link

@chrisnas chrisnas left a comment

Choose a reason for hiding this comment

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

LGTM

@gleocadie gleocadie force-pushed the gleocadie/fix-error-message branch from 288af88 to f0881cc Compare June 28, 2023 16:19
@gleocadie gleocadie merged commit 26795f3 into main Jun 28, 2023
@morrisonlevi morrisonlevi deleted the gleocadie/fix-error-message branch June 28, 2023 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
profiling Relates to the profiling* modules.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants