Remove some .unwrap() calls.

The parser still contains three calls to `unwrap()`, but a this point
I have not yet figured out how to remove them.
This commit is contained in:
2020-01-20 14:50:14 +01:00
parent e8d931b551
commit 0dc31c65c6

View File

@@ -26,7 +26,8 @@ fn main() {
let db;
{
info_time!("Loading database index");
db = DataBase::load(&[&format!("{}.index", core)]).unwrap();
db = DataBase::load(&[&format!("{}.index", core)])
.unwrap_or_else(|e| panic!("Unable to load database '{}': {}", core, e));
}
let parameters = CoreQueryParameters {