From 33c9ce5a98c4bd02e46b994fcbeb7cd022d73bb3 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Thu, 3 Aug 2023 02:37:45 +0200 Subject: [PATCH] Gracefully handle http request errors in hashtable syncing --- Obsidian/Shared/HashtableProvider.razor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Obsidian/Shared/HashtableProvider.razor.cs b/Obsidian/Shared/HashtableProvider.razor.cs index 4f5cb43..3d91a52 100644 --- a/Obsidian/Shared/HashtableProvider.razor.cs +++ b/Obsidian/Shared/HashtableProvider.razor.cs @@ -27,6 +27,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender) { await this.OnLoadingStart.InvokeAsync(); try { await this.Hashtable.Initialize(); + } catch (HttpRequestException httpRequestException) { + SnackbarUtils.ShowSoftError(this.Snackbar, httpRequestException); } catch (Exception exception) { SnackbarUtils.ShowHardError(this.Snackbar, exception); } finally {