Otherwise permission errors wouldn't be propagated.
Unified · Split
| @@ -39,7 +39,7 @@ impl Db { · 38 unmodified lines | ||
| 39 | 39 | action, |
| 40 | 40 | path, |
| 41 | 41 | } => { |
| 42 | − if action == Self::OPEN_ACTION { | |
| 42 | + if action == Self::OPEN_ACTION && err.kind() == std::io::ErrorKind::NotFound { | |
| 43 | 43 | None |
| 44 | 44 | } else { |
| 45 | 45 | Some(Err(Error::Io { |