diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index 02743682b..53fe47cc8 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -25,6 +25,10 @@ function parseServicesToGroups(services) { const serviceGroupServices = []; serviceGroup[name].forEach((entries) => { const entryName = Object.keys(entries)[0]; + if (!entries[entryName]) { + logger.warn(`Error parsing service "${entryName}" from config. Ensure required fields are present.`); + return; + } if (Array.isArray(entries[entryName])) { groups = groups.concat(parseServicesToGroups([{ [entryName]: entries[entryName] }])); } else {