jazz
jazz copied to clipboard
if parsing settings.toml fails, show that in an error
with lua prelude
instead of lua-prelude
, got this:
thread 'main' panicked at 'called
Result::unwrap()on an
Err value: expected an equals, found an identifier at line 1 in Settings.toml', libcore/result.rs:1009:5
We could do something like
match settings.merge(config::File::with_name("Settings.toml")) {
Ok(_) => {},
Err(e) => {
println!("Error opening Settings.toml: {}", e);
return;
}
};
Which wont throw a panic but would still display the error and would not continue the execution of the function