mirror of https://github.com/Radarr/Radarr
Better exception info for diskprovider
This commit is contained in:
parent
4bd226f7c4
commit
80df59c8e7
|
@ -105,9 +105,18 @@ namespace NzbDrone.Common
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void MoveDirectory(string source, string destination)
|
public virtual void MoveDirectory(string source, string destination)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
Directory.Move(source, destination);
|
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue