Compare commits

...

1 Commits

Author SHA1 Message Date
Pascal Seitz
dc90e4f8e9 change Err from Debug to Display
as reported by a user on Discord, the output of the Debug on error is a useless: 'Any { .. }'
switch to `Display` via to_string
2023-09-27 11:02:53 +08:00

View File

@@ -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()?;
}