Closed onelson closed 7 years ago
Not sure what is going wrong here, but when I call Config::load() on a totally non-exotic config file, it panics:
Config::load()
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Custom(Custom { kind: InvalidData, error: StringError("stream did not contain valid UTF-8") }) }', ../src/libcore/result.rs:799
File looks like
{ "nickname": "omnbot", "alt_nicks": ["omnbot_", "omnbot__"], "use_ssl": false, "port": 6667, "server": "irc.freenode.net", "channels": ["##omnbot_testing"] }
and file config.json reports ascii, which should decode as utf-8 just fine as far as I know.
file config.json
Any idea what's up?
OK, so, (sheepishly) I think this was just bad argument collection on the cli and the path to the file was wrong. Nothing to see here!
Not sure what is going wrong here, but when I call
Config::load()
on a totally non-exotic config file, it panics:File looks like
and
file config.json
reports ascii, which should decode as utf-8 just fine as far as I know.Any idea what's up?