From 5d4acd3398baadf314de8f8664d9e4fa4aecea69 Mon Sep 17 00:00:00 2001 From: Thomas <71355143+thomas694@users.noreply.github.com> Date: Wed, 3 Apr 2024 23:36:49 +0200 Subject: [PATCH] Fix Show error message for occasional error on adding batches of blogs --- .../TumblThree.Applications/Controllers/ManagerController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/TumblThree/TumblThree.Applications/Controllers/ManagerController.cs b/src/TumblThree/TumblThree.Applications/Controllers/ManagerController.cs index 57379c84..8a43bf5b 100644 --- a/src/TumblThree/TumblThree.Applications/Controllers/ManagerController.cs +++ b/src/TumblThree/TumblThree.Applications/Controllers/ManagerController.cs @@ -1027,6 +1027,11 @@ private async Task AddBlogBatchedAsync(IEnumerable urls, bool fromClipbo IEnumerable tasks = urls.Select(async url => await AddBlogsAsync(semaphoreSlim, url, fromClipboard)); await Task.WhenAll(tasks); } + catch (Exception ex) + { + Logger.Error($"ManagerController:AddBlogBatchedAsync: {ex}"); + _shellService.ShowError(new ClipboardContentException(ex), "error getting clipboard content"); + } finally { _addBlogSemaphoreSlim.Release();