From b7f381c183eebb60c40781a1db8b5934e3854eb6 Mon Sep 17 00:00:00 2001 From: Ari Webb Date: Thu, 19 Feb 2026 15:44:37 -0800 Subject: [PATCH] fix: better error formatting for init (#1044) --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 8a0439a..08d3a1f 100755 --- a/src/index.ts +++ b/src/index.ts @@ -15,6 +15,7 @@ import { ISOLATED_BLOCK_LABELS } from "./agent/memory"; import { resolveSkillSourcesSelection } from "./agent/skillSources"; import { LETTA_CLOUD_API_URL } from "./auth/oauth"; import { ConversationSelector } from "./cli/components/ConversationSelector"; +import { formatErrorDetails } from "./cli/helpers/errorFormatter"; import type { ApprovalRequest } from "./cli/helpers/stream"; import { ProfileSelectionInline } from "./cli/profile-selection"; import { runSubcommand } from "./cli/subcommands/router"; @@ -1991,8 +1992,7 @@ async function main(): Promise { init().catch((err) => { // Handle errors gracefully without showing raw stack traces - const message = - err instanceof Error ? err.message : "An unexpected error occurred"; + const message = formatErrorDetails(err); console.error(`\nError during initialization: ${message}`); if (process.env.DEBUG) { console.error(err);