Errors are silently ignored
TOML::Thumb silently ignores parsing errors:
$ raku -MTOML::Thumb -e 'say from-toml Q[foo = "bar"]'
{foo => bar}
$ raku -MTOML::Thumb -e 'say from-toml Q[foo = bar]'
Nil
It would be nice if TOML::Thumb gave some indication about where the parsing had failed.
For comparison, Config::TOML does report an error, but it's not particularly more informative:
$ raku -MConfig::TOML -e 'say from-toml Q[foo = bar]'
Odd number of elements found where hash initializer expected:
Only saw 1 element
in sub from-toml at ... (Config::TOML) line 13
in block <unit> at -e line 1