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

Fix unknown distribution message formatting #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FrostyX
Copy link
Owner

@FrostyX FrostyX commented Nov 1, 2023

Currently, the error is unformatted:

called 'Unknown or unsupported linux distribution: {0} (v{1})' if there

After this patch:

called 'Unknown or unsupported linux distribution: None (v1.1)' if there

I am not sure if the None is caused by my broken /etc/os-release or if it will appear even on real unsupported distributions. In any case, it is not caused by this commit. We would have to fix System.distribution().

Currently, the error is unformatted:

    called 'Unknown or unsupported linux distribution: {0} (v{1})' if there

After this patch:

    called 'Unknown or unsupported linux distribution: None (v1.1)' if there

I am not sure if the `None` is caused by my broken `/etc/os-release`
or if it will appear even on real unsupported distributions. In any
case, it is not caused by this commit. We would have to fix
`System.distribution()`.
@FrostyX
Copy link
Owner Author

FrostyX commented Nov 1, 2023

This may not be needed? On RHEL the message is correctly formatted even without this patch.

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.

1 participant