chore: move error handling todos from msgs into comments

This commit is contained in:
multisn8 2024-01-21 21:08:27 +01:00
parent 98f4a6cdeb
commit bbde1c84ca
Signed by: multisamplednight
GPG key ID: C81EF9B053977241
3 changed files with 8 additions and 8 deletions

View file

@ -10,18 +10,16 @@ mod error_reporting;
mod welcome_msg;
fn main() {
// TODO: proper error handling
// TODO: proper error handling across the whole function
// don't forget to also look inside `Config`
let cfg = Config::read();
if cfg.startup_msg {
print_startup_msg();
}
let source =
fs::read_to_string(cfg.source).expect("can't find source file lol handle me better please");
let ir =
ir::from_ron(&source).expect("aww failed to parse source to graph ir handle me better");
let source = fs::read_to_string(cfg.source).expect("can't find source file");
let ir = ir::from_ron(&source).expect("failed to parse source to graph ir");
let mut machine = cfg.evaluator.pick();
machine.feed(ir);