From ab4a2e1992a0ab33c7b3c9a00234e0e3b582e358 Mon Sep 17 00:00:00 2001 From: shiyasmohd Date: Sun, 29 Dec 2024 15:43:25 +0530 Subject: [PATCH] node: add error log when no args are passed for graphman config pools --- node/src/manager/commands/config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node/src/manager/commands/config.rs b/node/src/manager/commands/config.rs index 8b6d36e9afa..f8daaf40b83 100644 --- a/node/src/manager/commands/config.rs +++ b/node/src/manager/commands/config.rs @@ -66,6 +66,9 @@ pub fn check(config: &Config, print: bool) -> Result<(), Error> { } pub fn pools(config: &Config, nodes: Vec, shard: bool) -> Result<(), Error> { + if nodes.is_empty() { + bail!("Please specify at least one node"); + } // Quietly replace `-` with `_` in node names to make passing in pod names // from k8s less annoying let nodes: Vec<_> = nodes