mirror of
https://github.com/steelbrain/ffmpeg-over-ip.git
synced 2024-10-12 01:34:56 +03:00
🎨 Minor code style change
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user