Check the result of wait_merging_threads

This commit is contained in:
Laurentiu Nicola
2017-05-14 20:53:05 +03:00
committed by Paul Masurel
parent 8cd5a2d81d
commit b2beac1203

View File

@@ -208,7 +208,7 @@ fn run_example(index_path: &Path) -> tantivy::Result<()> {
// Usually this isn't needed, but in `main` we try to
// delete the temporary directory and that fails on
// Windows if the files are still open.
index_writer.wait_merging_threads();
index_writer.wait_merging_threads()?;
Ok(())
}