Skip to content

Commit

Permalink
chore: remove throwErrors implication from promiseConfig option
Browse files Browse the repository at this point in the history
  • Loading branch information
npetruzzelli committed Mar 5, 2021
1 parent 1a8ce58 commit 088aa79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ function parseConfig (configFilePath, cliOptions, parseOptions) {
const throwErrors = parseOptions && parseOptions.throwErrors === true
function fail () {
log.error(...arguments)
if (throwErrors === true || promiseConfig === true) {
if (throwErrors) {
const errorMessage = Array.from(arguments).join(' ')
const err = new Error(errorMessage)
if (promiseConfig) {
Expand Down

0 comments on commit 088aa79

Please sign in to comment.