1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-27 01:57:21 +00:00

Better exception info for diskprovider

This commit is contained in:
kay.one 2011-11-17 22:08:07 -08:00
parent 4bd226f7c4
commit 80df59c8e7

View file

@ -106,7 +106,16 @@ public virtual IEnumerable<FileInfo> GetFileInfos(string path, string pattern, S
public virtual void MoveDirectory(string source, string destination) public virtual void MoveDirectory(string source, string destination)
{ {
Directory.Move(source, destination); try
{
Directory.Move(source, destination);
}
catch (Exception e)
{
e.Data.Add("Source", source);
e.Data.Add("Destination", destination);
throw;
}
} }
public virtual void InheritFolderPermissions(string filename) public virtual void InheritFolderPermissions(string filename)