mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fix for key not found, returning a generic error instead
This commit is contained in:
parent
0af48fb2e8
commit
fa89d33900
1 changed files with 8 additions and 1 deletions
|
@ -83,16 +83,23 @@ namespace NzbDrone.Core.Download.Clients.DownloadStation.Responses
|
||||||
{
|
{
|
||||||
return AuthMessages[Code];
|
return AuthMessages[Code];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (api == DiskStationApi.DownloadStationTask && DownloadStationTaskMessages.ContainsKey(Code))
|
if (api == DiskStationApi.DownloadStationTask && DownloadStationTaskMessages.ContainsKey(Code))
|
||||||
{
|
{
|
||||||
return DownloadStationTaskMessages[Code];
|
return DownloadStationTaskMessages[Code];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (api == DiskStationApi.FileStationList && FileStationMessages.ContainsKey(Code))
|
if (api == DiskStationApi.FileStationList && FileStationMessages.ContainsKey(Code))
|
||||||
{
|
{
|
||||||
return FileStationMessages[Code];
|
return FileStationMessages[Code];
|
||||||
}
|
}
|
||||||
|
|
||||||
return CommonMessages[Code];
|
if (CommonMessages.ContainsKey(Code))
|
||||||
|
{
|
||||||
|
return CommonMessages[Code];
|
||||||
|
}
|
||||||
|
|
||||||
|
return $"{ Code } - Unknown error";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue