We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 960ca61 commit 9337f4fCopy full SHA for 9337f4f
1 file changed
rust/extractor/src/main.rs
@@ -456,8 +456,13 @@ impl<'a> Extractor<'a> {
456
DefMap::ROOT,
457
&mut trap,
458
);
459
- trap.commit();
460
-
+ trap.commit().unwrap_or_else(|err| {
+ log::error!(
461
+ "Failed to write trap file for crate: {}: {}",
462
+ root_module_file,
463
+ err.to_string()
464
+ )
465
+ });
466
fn go(
467
db: &dyn HirDatabase,
468
map: &DefMap,
0 commit comments