mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-13 10:41: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.");
|
||||
|
||||
var tempMarkdownFile = Guid.NewGuid().ToString();
|
||||
var tempMarkdownFilePath = Path.Combine(Path.GetTempPath(), tempMarkdownFile);
|
||||
|
||||
try
|
||||
{
|
||||
var tempMarkdownFile = Guid.NewGuid().ToString();
|
||||
var tempMarkdownFilePath = Path.Combine(Path.GetTempPath(), tempMarkdownFile);
|
||||
|
||||
// Extract text content from chat:
|
||||
var markdownText = markdownContent switch
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user