Fixed: Better import error messages

This commit is contained in:
Qstick
2017-10-29 21:55:15 -04:00
parent 78fcf86294
commit 2abeec06fc
9 changed files with 75 additions and 6 deletions
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Linq;
using System.Threading;
@@ -340,7 +340,7 @@ namespace NzbDrone.Common.Disk
}
else
{
throw new IOException(string.Format("Destination already exists. [{0}] to [{1}]", sourcePath, targetPath));
throw new DestinationAlreadyExistsException($"Destination {targetPath} already exists.");
}
}
}