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

Provide a better error message when loading a multi-document yaml #485

Open
lengau opened this issue Sep 20, 2024 · 1 comment
Open

Provide a better error message when loading a multi-document yaml #485

lengau opened this issue Sep 20, 2024 · 1 comment
Labels
Enhancement New feature or request triaged

Comments

@lengau
Copy link
Contributor

lengau commented Sep 20, 2024

What needs to get done

Right now the workflow when reading a multi-document yaml file returns an internal error:

$ charmcraft pack
charmcraft internal error: ComposerError('expected a single document in the stream', <yaml.error.Mark object at 0x73a1c3d77970>, 'but found another document', <yaml.error.Mark object at 0x73a1c3ce0340>)                                           
Full execution log: '/home/lengau/.local/state/charmcraft/log/charmcraft-20240920-152105.956862.log' 

This should be converted to an error message that we don't support multi-document YAML files.

Why it needs to get done

Strange ux. See: canonical/charmcraft#214

@lengau lengau added Enhancement New feature or request triaged labels Sep 20, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3411.

This message was autogenerated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request triaged
Projects
None yet
Development

No branches or pull requests

1 participant