chore: Throw parse error instead of continuing

This commit is contained in:
Nick Darvey 2022-01-20 16:40:00 +11:00 committed by GitHub
parent 853c0006ad
commit 66f3fa3986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,12 @@ export async function getRCFile (
}
throw new Error(errorText)
}
if (e.name === 'ParseError') {
if (verbose === true) {
console.info(e.message);
}
throw new Error(e.message);
}
}
}