diff options
| author | troido <troido@protonmail.com> | 2020-04-06 10:37:53 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-06 10:37:53 +0200 |
| commit | e8d3e3c4f69fc5bab2b32b16b7c8c2c4a8a89a4b (patch) | |
| tree | 67986bb0c0af1abe61dc9846d1a6c8c9b8e2c4b0 /src/main.rs | |
| parent | ff457701ff56072914acb8a7160cd02c2a07095a (diff) | |
made parseerrors their own thing
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 21d3ccc..8c2c716 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,13 +37,14 @@ mod purgatory; mod config; mod item; mod exchange; +mod errors; use self::{ pos::Pos, playerid::PlayerId, roomid::RoomId, item::ItemId, - util::Result, + errors::{Result, PResult}, sprite::Sprite, template::Template, encyclopedia::Encyclopedia, @@ -92,6 +93,7 @@ fn main() -> Result<()>{ )? )? )?; + encyclopedia.validate()?; let save_dir = config.save_dir.unwrap_or( FileStorage::default_save_dir().expect("couldn't find any save directory") |
