Open naturallymitchell opened 5 years ago
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
with
lua prelude
instead oflua-prelude
, got this:thread 'main' panicked at 'called
Result::unwrap()on an
Errvalue: expected an equals, found an identifier at line 1 in Settings.toml', libcore/result.rs:1009:5