Skip to content

Commit 0afa4c4

Browse files
Update src/utils/fs.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 0f05123 commit 0afa4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/fs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function readJsonConfigFile<T>(filePath: string, contextWindow: num
5454
return JSON.parse(content) as T
5555
} catch (error) {
5656
if (error instanceof SyntaxError) {
57-
throw new Error(`Invalid JSON in config file ${filePath}: ${error.message}`)
57+
throw new Error(`Invalid JSON in config file ${filePath}: ${error.message}`, { cause: error })
5858
}
5959
throw new Error(`Failed to read config file ${filePath}: ${error instanceof Error ? error.message : String(error)}`)
6060
}

0 commit comments

Comments
 (0)