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

containerenv: small error message fix #202

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

miabbott
Copy link
Contributor

This tweaks the error message when .containerenv cannot be found so that a fully-qualified path is included in the error.

Previously, the error message would just show run/.containerenv as the path to the file, which is not entirely clear.

I tried to change the const PATH to be an absolute path, but doing so breaks the ability for open_optional() to open the file successfully; returns an error a path led outside of the filesystem.

This tweaks the error message when `.containerenv` cannot be found so
that a fully-qualified path is included in the error.

Previously, the error message would just show `run/.containerenv` as
the path to the file, which is not entirely clear.

I tried to change the `const PATH` to be an absolute path, but doing
so breaks the ability for `open_optional()` to open the file
successfully; returns an error `a path led outside of the filesystem`.

Signed-off-by: Micah Abbott <[email protected]>
@cgwalters cgwalters merged commit 46e8f6c into containers:main Nov 11, 2023
9 checks passed
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.

2 participants