Skip to content

Commit

Permalink
Fix Show error message for occasional error on adding batches of blogs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas694 committed Apr 3, 2024
1 parent b990b39 commit 5d4acd3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,11 @@ private async Task AddBlogBatchedAsync(IEnumerable<string> urls, bool fromClipbo
IEnumerable<Task> 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();
Expand Down

0 comments on commit 5d4acd3

Please sign in to comment.