DEV: Handle Windows File errors

This commit is contained in:
Jeremy Wall 2019-10-17 18:05:08 -05:00
parent e058088a17
commit f199e0f871

View File

@ -77,8 +77,8 @@ impl From<regex::Error> for Error {
impl From<std::io::Error> for Error {
fn from(e: std::io::Error) -> Self {
let msg = match e.kind() {
io::ErrorKind::NotFound => format!("OSError: Path not found: {}", e),
let msg = match dbg!(e.kind()) {
io::ErrorKind::NotFound | io::ErrorKind::Other => format!("OSError: Path not found: {}", e),
_ => format!("{}", e),
};
Error {