mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-13 02:07:12 -07:00
Fixed some mono specific tests.
This commit is contained in:
parent
f7bdf635b3
commit
52a71a4e96
2 changed files with 9 additions and 4 deletions
|
@ -147,13 +147,12 @@ namespace NzbDrone.Core.Update
|
|||
|
||||
if (scriptPath.IsNullOrWhiteSpace())
|
||||
{
|
||||
throw new ArgumentException("Update Script has not been defined");
|
||||
throw new UpdateFailedException("Update Script has not been defined");
|
||||
}
|
||||
|
||||
if (!_diskProvider.FileExists(scriptPath, StringComparison.Ordinal))
|
||||
{
|
||||
var message = String.Format("Update Script: '{0}' does not exist", scriptPath);
|
||||
throw new FileNotFoundException(message, scriptPath);
|
||||
throw new UpdateFailedException("Update Script: '{0}' does not exist", scriptPath);
|
||||
}
|
||||
|
||||
_logger.Info("Removing NzbDrone.Update");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue