-
Notifications
You must be signed in to change notification settings - Fork 54
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
pathpolicy: tweak error messages and add test #853
Conversation
Trivial tweak for the errors returned from PathPolicies.Check() so that they are a bit more user friendly. See also osbuild/bootc-image-builder#601
These messages never reach the user. We run through them when checking the blueprint and list the ones that failed to validate without giving a specific: images/pkg/blueprint/filesystem_customizations.go Lines 74 to 89 in 98860d0
We should also make a similar change to what you proposed on osbuild/bootc-image-builder#601 (comment) |
Small tweak to the way the error from CheckMountpointsPolicy is constructed to include the details from the pathpolicy errors. Thanks to Achilleas
Thank you! Nice catch! I updated this PR to also include the improved error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay!
Trivial tweak for the errors returned from PathPolicies.Check() so that they are a bit more user friendly.
See also osbuild/bootc-image-builder#601