← Back to issue list

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

View original Github issue

Metadata

Project
craft-application
Number
#485
Type
issue
State
open
Author
lengau
Labels
Created
2024-09-20 19:23:18+00:00
Updated
2025-05-23 17:26:55+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### 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: https://github.com/canonical/charmcraft/issues/214

Evaluation history

No evaluation history available.