From 602448246a2de90f1d3f666b68ff94141916bd74 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 9 Dec 2025 21:51:11 +0100 Subject: [PATCH] Refine Pandoc availability logging conditions --- app/MindWork AI Studio/Chat/ContentText.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/MindWork AI Studio/Chat/ContentText.cs b/app/MindWork AI Studio/Chat/ContentText.cs index fe580398..09a4e0af 100644 --- a/app/MindWork AI Studio/Chat/ContentText.cs +++ b/app/MindWork AI Studio/Chat/ContentText.cs @@ -158,8 +158,11 @@ public sealed class ContentText : IContent { // Check Pandoc availability once before processing file attachments var pandocState = await Pandoc.CheckAvailabilityAsync(Program.RUST_SERVICE, showMessages: true, showSuccessMessage: false); - if (!pandocState.IsAvailable || !pandocState.CheckWasSuccessful) - LOGGER.LogWarning("File attachments could not be processed because Pandoc is not available or the version check failed."); + + if (!pandocState.IsAvailable) + LOGGER.LogWarning("File attachments could not be processed because Pandoc is not available."); + else if (!pandocState.CheckWasSuccessful) + LOGGER.LogWarning("File attachments could not be processed because the Pandoc version check failed."); else { sb.AppendLine();