We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d926a19 commit 732c9abCopy full SHA for 732c9ab
plugins/warp/src/container/disk.rs
@@ -89,7 +89,11 @@ impl Container for DiskContainer {
89
fn add_source(&mut self, path: SourcePath) -> ContainerResult<SourceId> {
90
// Disk sources have there source id computed from the path.
91
let source_id = path.to_source_id();
92
- self.insert_source(source_id, path)?;
+ match self.insert_source(source_id, path) {
93
+ Ok(()) => {}
94
+ Err(ContainerError::SourceAlreadyExists(_)) => {}
95
+ Err(err) => return Err(err),
96
+ }
97
Ok(source_id)
98
}
99
0 commit comments