From f199e0f8717ff8de0f79252e67d1b2cdda377d7d Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Thu, 17 Oct 2019 18:05:08 -0500 Subject: [PATCH] DEV: Handle Windows File errors --- src/build/opcode/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build/opcode/error.rs b/src/build/opcode/error.rs index 1473bf2..8122f6a 100644 --- a/src/build/opcode/error.rs +++ b/src/build/opcode/error.rs @@ -77,8 +77,8 @@ impl From for Error { impl From 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 {