kislyuk / yq

Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
https://kislyuk.github.io/yq/
Apache License 2.0
2.53k stars 81 forks source link

Raise legible error when trying to emit TOML with null values #183

Open kislyuk opened 4 months ago

kislyuk commented 4 months ago

TOML does not support null values (not sure how that makes any sense, but apparently it never will: https://github.com/toml-lang/toml/issues/30)

We currently raise the following error when encountering them: tomlkit.items._ConvertError: Invalid type <class 'NoneType'>

Come up with a more legible error that makes it more obvious what's going on.