mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-15 04:41:36 +00:00
Refine Pandoc availability logging conditions
This commit is contained in:
parent
2562744bea
commit
602448246a
@ -158,8 +158,11 @@ public sealed class ContentText : IContent
|
|||||||
{
|
{
|
||||||
// Check Pandoc availability once before processing file attachments
|
// Check Pandoc availability once before processing file attachments
|
||||||
var pandocState = await Pandoc.CheckAvailabilityAsync(Program.RUST_SERVICE, showMessages: true, showSuccessMessage: false);
|
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
|
else
|
||||||
{
|
{
|
||||||
sb.AppendLine();
|
sb.AppendLine();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user