odakaui / vocabulist

A vocabulary database for learning Japanese
MIT License
0 stars 0 forks source link

Fix Error when Using Old/Misconfigured Config File #41

Open odakaui opened 4 years ago

odakaui commented 4 years ago

When the config file does not contain the correct fields you get this error.

Error: Error { inner: ErrorInner { kind: Custom, line: Some(3), col: 0, at: Some(124), message: "missing field `backend`", key: [] } }

Make the program fail gracefully.

odakaui commented 4 years ago

All config options should have sane defaults and should be optional.

All config options should be documented in the Wiki.