Skip to content

Conversation

@granoe668
Copy link
Contributor

Previous message implies the file is found but the contents are not valid. Especially when referring to a YAML file.

This adds a clearer message and specifies where the code has looked for the file.

Example:

> ❯ infrahubctl generator --list 
.infrahub.yml: not found at /that/file/isnt/here

granoe668 added 9 commits June 3, 2025 12:54
Previous message implies the file is found but the contents are not valid. Especially when referring to a YAML file.

This adds a clearer message and specifies where the code has looked for the file.
Clearer argument name and use of path object
Downstream method changed signature:
file_name --> file_path
Fix test_missing_file after error message change
Use correct variable name
Update incorrect encoding test after read_file method changes.
@FragmentedPacket FragmentedPacket merged commit eba53ae into opsmill:stable Jun 4, 2025
16 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.

3 participants