add better message for orchs without a target uri

This commit is contained in:
Marco van Dijk 2022-08-09 18:00:11 +02:00
parent c70ec8d252
commit cb96d3f408

View File

@ -242,7 +242,7 @@ const pingNextOrch = async function () {
if (!currentPool.length) { refreshPool(); } if (!currentPool.length) { refreshPool(); }
let currentOrch = currentPool.splice(0, 1)[0]; let currentOrch = currentPool.splice(0, 1)[0];
if (!currentOrch.id || !currentOrch.target) { if (!currentOrch.id || !currentOrch.target) {
console.log("err: \n", currentOrch); console.log("Skipping Orchestrator with malformed data: ", currentOrch);
return; return;
} }
await testOrchestrator(currentOrch.id, currentOrch.target); await testOrchestrator(currentOrch.id, currentOrch.target);