Skip to content

Commit d3b9a63

Browse files
committed
mullvad-paths: Fix wrong error kind for create_dir
1 parent 381ed77 commit d3b9a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mullvad-paths/src/windows.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ fn create_dir_with_permissions_recursive(path: &Path) -> Result<()> {
127127
}
128128
}
129129

130-
std::fs::create_dir(path)?;
130+
std::fs::create_dir(path).map_err(|e| Error::CreateDirFailed(path.display().to_string(), e))?;
131131
set_security_permissions(path)
132132
}
133133

0 commit comments

Comments
 (0)