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

MAINT: improve error reporting when meson --version fails #633

Merged
merged 2 commits into from
May 19, 2024

Conversation

dnicolodi
Copy link
Member

Follow up for #631

@rgommers rgommers added the maintenance Regular code improvements that are not new features nor end-user-visible bugs label May 19, 2024
@rgommers rgommers added this to the v0.17.0 milestone May 19, 2024
Copy link
Contributor

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @dnicolodi

except FileNotFoundError as err:
raise ConfigError(f'meson executable "{meson}" not found') from err
if r.returncode != 0:
raise ConfigError(f'Could not execute meson: {r.stderr.strip()}')
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch, stderr is correct here, stdout was not.

@rgommers rgommers merged commit 063fe8b into mesonbuild:main May 19, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Regular code improvements that are not new features nor end-user-visible bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants