From 6952cfe8457adde08b1a8485c580b6ddedab7ec6 Mon Sep 17 00:00:00 2001 From: perf3ct Date: Tue, 3 Jun 2025 21:08:00 +0000 Subject: [PATCH] fix(llm): resolve linter errors --- apps/server/src/app.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/server/src/app.ts b/apps/server/src/app.ts index f5085965d..34fbc1f62 100644 --- a/apps/server/src/app.ts +++ b/apps/server/src/app.ts @@ -99,7 +99,8 @@ export default async function buildApp() { log.info("LLM features disabled in settings, skipping initialization"); } } 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); } }); @@ -115,8 +116,9 @@ export default async function buildApp() { log.info("LLM features disabled in settings, skipping initialization"); } } 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); - log.error(`Error initializing LLM features: ${error}`); } } else { log.info("Database not initialized yet. LLM features will be initialized after setup.");