mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
DEV: Handle Windows File errors
This commit is contained in:
parent
e058088a17
commit
f199e0f871
@ -77,8 +77,8 @@ impl From<regex::Error> for Error {
|
|||||||
|
|
||||||
impl From<std::io::Error> for Error {
|
impl From<std::io::Error> for Error {
|
||||||
fn from(e: std::io::Error) -> Self {
|
fn from(e: std::io::Error) -> Self {
|
||||||
let msg = match e.kind() {
|
let msg = match dbg!(e.kind()) {
|
||||||
io::ErrorKind::NotFound => format!("OSError: Path not found: {}", e),
|
io::ErrorKind::NotFound | io::ErrorKind::Other => format!("OSError: Path not found: {}", e),
|
||||||
_ => format!("{}", e),
|
_ => format!("{}", e),
|
||||||
};
|
};
|
||||||
Error {
|
Error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user