Skip to content

Commit 945fae8

Browse files
anamnavialerickson
andauthored
Update src/code/Utils.cs
Co-authored-by: alerickson <25858831+alerickson@users.noreply.github.com>
1 parent aa85c9e commit 945fae8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/code/Utils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ public static void DeleteDirectory(string dirPath)
17151715
if (ex.Message.Contains("The directory is not empty") && psVersion.StartsWith("5"))
17161716
{
17171717
// 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.
1718-
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);
1718+
throw new Exception(string.Format("Cannot uninstall module with OneDrive based path on Windows PowerShell due to .NET issue. Try installing and uninstalling using PowerShell 7+ if using OneDrive."), ex);
17191719
}
17201720

17211721
throw new Exception(string.Format("Access denied to path while deleting path {0}", dirPath), ex);

0 commit comments

Comments
 (0)