diff --git a/src/indexer/index_writer.rs b/src/indexer/index_writer.rs index e19852038c..4d4a7fac0e 100644 --- a/src/indexer/index_writer.rs +++ b/src/indexer/index_writer.rs @@ -620,7 +620,7 @@ impl IndexWriter { for worker_handle in former_workers_join_handle { let indexing_worker_result = worker_handle .join() - .map_err(|e| TantivyError::ErrorInThread(format!("{e:?}")))?; + .map_err(|e| TantivyError::ErrorInThread(e.to_string()))?; indexing_worker_result?; self.add_indexing_worker()?; }