mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(llm): fix logging type check
This commit is contained in:
parent
41906abaf9
commit
e96fdbf72f
@ -429,7 +429,7 @@ export async function processProviderStream(
|
||||
};
|
||||
} catch (error) {
|
||||
// Improved error handling to preserve original error even if logging fails
|
||||
let logError = null;
|
||||
let logError: unknown | null = null;
|
||||
try {
|
||||
log.error(`Error in ${options.providerName} stream processing: ${error instanceof Error ? error.message : String(error)}`);
|
||||
log.error(`Error details: ${error instanceof Error ? error.stack : 'No stack trace available'}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user