diff --git a/tests/Install-Scripts.Test/GivenThatIWantToInstallDotnetFromAScript.cs b/tests/Install-Scripts.Test/GivenThatIWantToInstallDotnetFromAScript.cs index 48272686c..320c5804e 100644 --- a/tests/Install-Scripts.Test/GivenThatIWantToInstallDotnetFromAScript.cs +++ b/tests/Install-Scripts.Test/GivenThatIWantToInstallDotnetFromAScript.cs @@ -208,7 +208,7 @@ public void Dispose() } catch (UnauthorizedAccessException e) { - throw new Exception($"Failed to remove {_sdkInstallationDirectory}"); + throw new Exception($"Failed to remove {_sdkInstallationDirectory}", e); } }