mirror of
https://github.com/toddbluhm/env-cmd.git
synced 2025-12-08 18:23:33 +00:00
chore: Include parse error message in error
This commit is contained in:
parent
8f35b71651
commit
853c0006ad
@ -34,7 +34,7 @@ export async function getRCFileVars (
|
||||
parsedData = JSON.parse(file)
|
||||
}
|
||||
} catch (e) {
|
||||
const parseError = new Error(`Failed to parse .rc file at path: ${absolutePath}`)
|
||||
const parseError = new Error(`Failed to parse .rc file at path: ${absolutePath}.\n${e.message}`)
|
||||
parseError.name = 'ParseError'
|
||||
throw parseError
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user