Show path when directory delete fails in test setup

This commit is contained in:
Daniel Plaisted 2017-08-09 23:47:36 -07:00
parent 4ccf1b6902
commit 61e68e621a

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();