From 080300508363a40693100efb399898e81b030de8 Mon Sep 17 00:00:00 2001 From: iamtoruk Date: Mon, 20 Apr 2026 15:00:03 -0700 Subject: [PATCH] fix(config): restore catch-all in readConfig to prevent CLI crash on malformed config --- src/config.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/config.ts b/src/config.ts index 8af72d6..d275200 100644 --- a/src/config.ts +++ b/src/config.ts @@ -33,11 +33,8 @@ export async function readConfig(): Promise { try { const raw = await readFile(getConfigPath(), 'utf-8') return JSON.parse(raw) as CodeburnConfig - } catch (error) { - if ((error as NodeJS.ErrnoException).code === 'ENOENT') { - return {} - } - throw error + } catch { + return {} } }