This commit is contained in:
Lightczx
2024-01-31 11:37:48 +08:00
parent aa680388ad
commit 83c4598df5
3 changed files with 3 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ internal sealed class DownloadSummary : ObservableObject
logger.LogError(ex, "Download Static Zip failed");
await taskContext.SwitchToMainThreadAsync();
Description = ex is HttpRequestException httpRequestException
? $"{SH.ViewModelWelcomeDownloadSummaryException} - HTTP {httpRequestException.StatusCode:D}"
? $"{SH.ViewModelWelcomeDownloadSummaryException} - HTTP {httpRequestException.HttpRequestError} {httpRequestException.StatusCode:D}"
: ex.Message;
return false;
}

View File

@@ -4,7 +4,7 @@
namespace Snap.Hutao.Web.Hoyolab;
[JsonConverter(typeof(RegionConverter))]
internal readonly partial struct Region
internal readonly struct Region
{
public static readonly Region CNGF01 = new("cn_gf01");
public static readonly Region CNQD01 = new("cn_qd01");

View File

@@ -19,4 +19,4 @@ internal sealed class RegionConverter : JsonConverter<Region>
{
writer.WriteStringValue(value.Value);
}
}
}