diff --git a/components/chainhook-cli/src/config/mod.rs b/components/chainhook-cli/src/config/mod.rs index cba31806e..80ad2215b 100644 --- a/components/chainhook-cli/src/config/mod.rs +++ b/components/chainhook-cli/src/config/mod.rs @@ -357,7 +357,7 @@ impl Config { (false, true, false, _) => Config::testnet_default(), (false, false, true, _) => Config::mainnet_default(), (false, false, false, Some(config_path)) => Config::from_file_path(config_path)?, - _ => Err("Invalid combination of arguments".to_string())?, + _ => Err("Must include environment flag (for example --devnet)".to_string())?, }; Ok(config) } diff --git a/components/chainhook-cli/src/config/tests/mod.rs b/components/chainhook-cli/src/config/tests/mod.rs index fa48fe655..c63eb2a13 100644 --- a/components/chainhook-cli/src/config/tests/mod.rs +++ b/components/chainhook-cli/src/config/tests/mod.rs @@ -178,5 +178,5 @@ fn it_has_default_config_for_each_network() { let config = Config::default(false, false, false, &Some(path)).unwrap(); assert_eq!(config.network.bitcoin_network, BitcoinNetwork::Regtest); assert_eq!(config.network.stacks_network, StacksNetwork::Devnet); - Config::default(true, true, false, &None).expect_err("expected invalid combination error"); + Config::default(true, true, false, &None).expect_err("expected missing environment flag error"); }