mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-15 17:21:36 +00:00
Improved error handling for temporary file construction
This commit is contained in:
parent
9120fce1d2
commit
8e82a07a33
@ -25,11 +25,11 @@ public static class PandocExport
|
|||||||
|
|
||||||
LOGGER.LogInformation($"The user chose the path '{response.SaveFilePath}' for the Microsoft Word export.");
|
LOGGER.LogInformation($"The user chose the path '{response.SaveFilePath}' for the Microsoft Word export.");
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
var tempMarkdownFile = Guid.NewGuid().ToString();
|
var tempMarkdownFile = Guid.NewGuid().ToString();
|
||||||
var tempMarkdownFilePath = Path.Combine(Path.GetTempPath(), tempMarkdownFile);
|
var tempMarkdownFilePath = Path.Combine(Path.GetTempPath(), tempMarkdownFile);
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// Extract text content from chat:
|
// Extract text content from chat:
|
||||||
var markdownText = markdownContent switch
|
var markdownText = markdownContent switch
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user