🎨 Minor code style change

This commit is contained in:
Anees Iqbal
2024-10-04 20:50:19 +04:00
parent c8caaf6fe0
commit 364faca64b

View File

@@ -69,8 +69,8 @@ export async function loadConfig<T extends Runtime.Client | Runtime.Server>(
let parsed: unknown
try {
parsed = JSON.parse(stripJsonComments(textContents))
} catch (err) {
throw new Error('Malformed JSON in config file')
} catch (_) {
throw new Error(`Malformed JSON in config file at ${selectedConfigFilePath}`)
}
if (
parsed != null &&