fix: ensure success status code on plugin download

This commit is contained in:
goat 2021-08-24 12:16:38 +02:00
parent 76cefe366d
commit 0c52f8099e
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -410,6 +410,7 @@ namespace Dalamud.Plugin.Internal
using var client = new HttpClient();
var response = await client.GetAsync(downloadUrl);
response.EnsureSuccessStatusCode();
Log.Debug($"Extracting to {outputDir}");
// This throws an error, even with overwrite=false