mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(llm): resolve linter errors
This commit is contained in:
parent
445ae312ef
commit
6952cfe845
@ -99,7 +99,8 @@ export default async function buildApp() {
|
|||||||
log.info("LLM features disabled in settings, skipping initialization");
|
log.info("LLM features disabled in settings, skipping initialization");
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log.error("Error initializing LLM features:", error);
|
const errorMsg = error instanceof Error ? error.message : String(error);
|
||||||
|
log.error(`Error initializing LLM features: ${errorMsg}`);
|
||||||
console.error("Error initializing LLM features:", error);
|
console.error("Error initializing LLM features:", error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -115,8 +116,9 @@ export default async function buildApp() {
|
|||||||
log.info("LLM features disabled in settings, skipping initialization");
|
log.info("LLM features disabled in settings, skipping initialization");
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
const errorMsg = error instanceof Error ? error.message : String(error);
|
||||||
|
log.error(`Error initializing LLM features: ${errorMsg}`);
|
||||||
console.error("Error initializing LLM features:", error);
|
console.error("Error initializing LLM features:", error);
|
||||||
log.error(`Error initializing LLM features: ${error}`);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.info("Database not initialized yet. LLM features will be initialized after setup.");
|
log.info("Database not initialized yet. LLM features will be initialized after setup.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user