Skip to content

Commit 3e273d5

Browse files
committed
refactor: 重构代码
1 parent 9f6f437 commit 3e273d5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/BootstrapBlazor.Server/Components/Samples/Downloads.razor.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ private async Task DownloadFolderAsync()
5050
{
5151
await DownloadService.DownloadFolderAsync("test.zip", WebsiteOption.CurrentValue.WebRootPath);
5252
}
53-
catch (FileNotFoundException msg)
53+
catch (Exception ex)
5454
{
55-
56-
await ToastService.Error("下载", msg.Message);
55+
await ToastService.Error("下载", ex.Message);
5756
}
5857
}
5958

0 commit comments

Comments
 (0)