This commit is contained in:
DismissedLight
2023-07-12 13:21:48 +08:00
parent 72be37834d
commit 70ab81bb0f

View File

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