From f827ba418c784c59e792b2230ea07c7500abe042 Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 23 Jan 2019 21:00:59 -0500 Subject: [PATCH] Fixed: MoveArtist logging a failure and a success message --- src/NzbDrone.Core/Music/MoveArtistService.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Music/MoveArtistService.cs b/src/NzbDrone.Core/Music/MoveArtistService.cs index 312d22c89..0d538c3c2 100644 --- a/src/NzbDrone.Core/Music/MoveArtistService.cs +++ b/src/NzbDrone.Core/Music/MoveArtistService.cs @@ -54,6 +54,9 @@ namespace NzbDrone.Core.Music try { _diskTransferService.TransferFolder(sourcePath, destinationPath, TransferMode.Move); + _logger.ProgressInfo("{0} moved successfully to {1}", artist.Name, artist.Path); + + _eventAggregator.PublishEvent(new ArtistMovedEvent(artist, sourcePath, destinationPath)); } catch (IOException ex) { @@ -61,10 +64,6 @@ namespace NzbDrone.Core.Music RevertPath(artist.Id, sourcePath); } - - _logger.ProgressInfo("{0} moved successfully to {1}", artist.Name, artist.Path); - - _eventAggregator.PublishEvent(new ArtistMovedEvent(artist, sourcePath, destinationPath)); } private void RevertPath(int artistId, string path)