Skip to content

Commit 5f111e4

Browse files
author
Anam Navied
committed
update comment
1 parent f14cf8d commit 5f111e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code/Utils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ public static void DeleteDirectory(string dirPath)
17141714
string psVersion = System.Management.Automation.Runspaces.Runspace.DefaultRunspace.Version.ToString();
17151715
if (ex.Message.Contains("The directory is not empty") && psVersion.StartsWith("5"))
17161716
{
1717-
// there is a known bug with WindowsPowerShell and OneDrive based module paths, where at uninstall time .NET Directory.Delete() will give 'The directory is not empty.' error
1717+
// there is a known bug with WindowsPowerShell and OneDrive based module paths, where .NET Directory.Delete() will throw a 'The directory is not empty.' error.
17181718
throw new Exception(string.Format("Cannot uninstall module with OneDrive based path on WindowsPowerShell due to .NET issue. Try installing and uninstalling using PowerShellCore if using OneDrive."), ex);
17191719
}
17201720

0 commit comments

Comments
 (0)