Skip to content

Improve error message with YAML parsing #51

@DavidMertz

Description

@DavidMertz

Trying to add a module I get this:

vagrant@zimagi:~$ zimagi module add https://github.com/zimagi/module-model-manager.git
** while parsing a block mapping

This is not wrong. Using a Python shell manually, I see that indeed I made an error in my YAML:

ParserError: while parsing a block mapping
  in "spec/data/training-event.yml", line 102, column 9
expected <block end>, but found '<scalar>'

However, presenting the full message, or at least more of it would allow developers to see within Zimagi itself something meaningful about what went wrong.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions