You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: readJson() lacks error handling for malformed JSON #18351
Wrap JSON.parse in try/catch and provide a meaningful error:
exportasyncfunctionreadJson<T=any>(p: string): Promise<T>{try{returnJSON.parse(awaitreadFile(p,"utf-8"))}catch(e){thrownewError(`Failed to parse JSON from ${p}`,{cause: e})}}
Acceptance Criteria
Malformed JSON throws a meaningful error with file path
Activity
github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.