Fixed: MoveArtist logging a failure and a success message

This commit is contained in:
Qstick 2019-01-23 21:00:59 -05:00
parent 42e9027216
commit f827ba418c

View file

@ -54,6 +54,9 @@ private void MoveSingleArtist(Artist artist, string sourcePath, string destinati
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 @@ private void MoveSingleArtist(Artist artist, string sourcePath, string destinati
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)