Skip to content

Commit 66f3fa3

Browse files
authored
chore: Throw parse error instead of continuing
1 parent 853c000 commit 66f3fa3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/get-env-vars.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ export async function getRCFile (
103103
}
104104
throw new Error(errorText)
105105
}
106+
if (e.name === 'ParseError') {
107+
if (verbose === true) {
108+
console.info(e.message);
109+
}
110+
throw new Error(e.message);
111+
}
106112
}
107113
}
108114

0 commit comments

Comments
 (0)