diff --git a/lib/validators/agent_validator.js b/lib/validators/agent_validator.js index 11014b82f..90064e27a 100644 --- a/lib/validators/agent_validator.js +++ b/lib/validators/agent_validator.js @@ -4,7 +4,7 @@ exports.agentValidator = void 0; const agentValidator = (graphAgentIds, agentIds) => { graphAgentIds.forEach((agentId) => { if (!agentIds.has(agentId)) { - throw new Error("Invalid AgentId : " + agentId + " is not in callbackDictonary."); + throw new Error("Invalid Agent : " + agentId + " is not in callbackDictonary."); } }); return true; diff --git a/lib/validators/nodeValidator.js b/lib/validators/nodeValidator.js index 02433817f..7790abe79 100644 --- a/lib/validators/nodeValidator.js +++ b/lib/validators/nodeValidator.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.nodeValidator = void 0; const nodeValidator = (nodeData) => { if (nodeData.agent && nodeData.value) { - throw new Error("Cannot set both agentId and value"); + throw new Error("Cannot set both agent and value"); } if (!("agent" in nodeData) && !("value" in nodeData)) { - throw new Error("Either agentId or value is required"); + throw new Error("Either agent or value is required"); } return true; };