More debug output for upload failures

This commit is contained in:
Timothy Baldridge 2020-04-04 11:10:40 -06:00
parent 07c35f7a96
commit 615f059bd5

View File

@ -106,7 +106,12 @@ namespace Wabbajack.Lib.FileUploader
if (finalResponse.IsSuccessStatusCode)
tcs.SetResult(await finalResponse.Content.ReadAsStringAsync());
else
tcs.SetException(new Exception($"Finalization Error: {finalResponse.StatusCode} {finalResponse.ReasonPhrase}"));
{
Utils.Log("Finalization Error: ");
Utils.Log(await finalResponse.Content.ReadAsStringAsync());
tcs.SetException(new Exception(
$"Finalization Error: {finalResponse.StatusCode} {finalResponse.ReasonPhrase}"));
}
}
progressFn(0.0);