We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e02a21b + 66f3fa3 commit d6404f1Copy full SHA for d6404f1
src/get-env-vars.ts
@@ -103,6 +103,12 @@ export async function getRCFile (
103
}
104
throw new Error(errorText)
105
106
+ if (e.name === 'ParseError') {
107
+ if (verbose === true) {
108
+ console.info(e.message);
109
+ }
110
+ throw new Error(e.message);
111
112
113
114
src/parse-rc-file.ts
@@ -34,7 +34,7 @@ export async function getRCFileVars (
34
parsedData = JSON.parse(file)
35
36
} catch (e) {
37
- 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}`)
38
parseError.name = 'ParseError'
39
throw parseError
40
0 commit comments