From 50005ac0f208cedadc888edc669c00256e26161c Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Sat, 21 Oct 2017 15:31:44 +0300 Subject: [PATCH] warn only on unrecognized config names --- lib/config-validate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config-validate.js b/lib/config-validate.js index 13103da1..b37d2b39 100644 --- a/lib/config-validate.js +++ b/lib/config-validate.js @@ -133,8 +133,8 @@ function ensureConstraints (config) { const fieldCode = fieldInstance.fieldLocator.code const field = pickField(fieldCode) if (!field) { - logger.error('No such field: %s, %j', fieldCode, fieldInstance.fieldLocator.fieldScope) - throw new Error('No such field: ' + fieldCode) + logger.warn('No such field: %s, %j', fieldCode, fieldInstance.fieldLocator.fieldScope) + return } const fieldValue = fieldInstance.fieldValue