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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user