better exit on error

Update meilisearch-core/src/database.rs

Co-authored-by: Clément Renault <renault.cle@gmail.com>

Update meilisearch-core/src/database.rs

Co-authored-by: Clément Renault <renault.cle@gmail.com>
This commit is contained in:
mpostma 2020-06-24 16:06:04 +02:00
parent 6f0b6933e6
commit 51d7c84e73
5 changed files with 15 additions and 17 deletions

View file

@ -50,7 +50,7 @@ impl Server {
..Opt::default()
};
let data = Data::new(opt.clone());
let data = Data::new(opt.clone()).unwrap();
Server {
uid: uid.to_string(),