Show path when directory delete fails in test setup

(cherry picked from commit 61e68e621a)
This commit is contained in:
Daniel Plaisted 2017-08-09 23:47:36 -07:00 committed by Nick Guerrera
parent db1dabca9a
commit dd4a1b5121

View file

@ -51,7 +51,14 @@ namespace Microsoft.DotNet.TestFramework
if (Root.Exists)
{
Root.Delete(recursive: true);
try
{
Root.Delete(recursive: true);
}
catch (IOException ex)
{
throw new InvalidOperationException("Unable to delete directory: " + Root.FullName, ex);
}
}
Root.Create();