mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Fixed: Log error message when moving file to recycling bin fails
This commit is contained in:
@@ -110,9 +110,18 @@ namespace NzbDrone.Core.MediaFiles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.Debug("Moving '{0}' to '{1}'", path, destination);
|
try
|
||||||
_diskTransferService.TransferFile(path, destination, TransferMode.Move);
|
{
|
||||||
|
_logger.Debug("Moving '{0}' to '{1}'", path, destination);
|
||||||
|
_diskTransferService.TransferFile(path, destination, TransferMode.Move);
|
||||||
|
}
|
||||||
|
catch (IOException e)
|
||||||
|
{
|
||||||
|
var message = String.Format("Unable to move '{0}' to the recycling bin: '{1}'", path, destination);
|
||||||
|
_logger.ErrorException(message, e);
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
|
||||||
//TODO: Better fix than this for non-Windows?
|
//TODO: Better fix than this for non-Windows?
|
||||||
if (OsInfo.IsWindows)
|
if (OsInfo.IsWindows)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user