We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f05123 commit 0afa4c4Copy full SHA for 0afa4c4
src/utils/fs.ts
@@ -54,7 +54,7 @@ export async function readJsonConfigFile<T>(filePath: string, contextWindow: num
54
return JSON.parse(content) as T
55
} catch (error) {
56
if (error instanceof SyntaxError) {
57
- throw new Error(`Invalid JSON in config file ${filePath}: ${error.message}`)
+ throw new Error(`Invalid JSON in config file ${filePath}: ${error.message}`, { cause: error })
58
}
59
throw new Error(`Failed to read config file ${filePath}: ${error instanceof Error ? error.message : String(error)}`)
60
0 commit comments