Fix error not being thrown in IPS4 code

This commit is contained in:
Timothy Baldridge 2020-02-26 06:06:02 -07:00
parent 6491a1c3f4
commit 1a02adc43b

View File

@ -126,7 +126,7 @@ namespace Wabbajack.Lib.Downloaders
if (streamResult.StatusCode != HttpStatusCode.OK)
{
streamResult.Dispose();
Utils.Error(new InvalidOperationException(), $"{downloader.SiteName} servers reported an error for file: {FileID}");
Utils.ErrorThrow(new InvalidOperationException(), $"{downloader.SiteName} servers reported an error for file: {FileID}");
}
var contentType = streamResult.Content.Headers.ContentType;