This commit is contained in:
Bogdan 2024-01-16 05:10:20 +02:00
parent 2960fc37d9
commit ef8e6d774b

View file

@ -28,7 +28,7 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
throw new IndexerException(indexerResponse, "Unexpected response status {0} code from indexer request", indexerResponse.HttpResponse.StatusCode);
}
if (indexerResponse.Content.StartsWith("{\"error2\"") && STJson.TryDeserialize<FileListErrorResponse>(indexerResponse.Content, out var errorResponse))
if (indexerResponse.Content.StartsWith("{\"error\"") && STJson.TryDeserialize<FileListErrorResponse>(indexerResponse.Content, out var errorResponse))
{
throw new IndexerException(indexerResponse, "Unexpected response from indexer request: {0}", errorResponse.Error);
}