From db03f43e302f8014953016bbbc6654163c55535b Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 26 Nov 2017 20:52:45 -0500 Subject: [PATCH] Log warnings when deleting a track file and the root folder is missing/empty --- src/NzbDrone.Core/MediaFiles/MediaFileDeletionService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NzbDrone.Core/MediaFiles/MediaFileDeletionService.cs b/src/NzbDrone.Core/MediaFiles/MediaFileDeletionService.cs index e5d274020..053e51026 100644 --- a/src/NzbDrone.Core/MediaFiles/MediaFileDeletionService.cs +++ b/src/NzbDrone.Core/MediaFiles/MediaFileDeletionService.cs @@ -41,11 +41,13 @@ namespace NzbDrone.Core.MediaFiles if (!_diskProvider.FolderExists(rootFolder)) { + _logger.Warn("Artist's root folder ({0}) doesn't exist.", rootFolder); throw new NzbDroneClientException(HttpStatusCode.Conflict, "Artist's root folder ({0}) doesn't exist.", rootFolder); } if (_diskProvider.GetDirectories(rootFolder).Empty()) { + _logger.Warn("Artist's root folder ({0}) is empty.", rootFolder); throw new NzbDroneClientException(HttpStatusCode.Conflict, "Artist's root folder ({0}) is empty.", rootFolder); }