mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-26 09:13:41 +00:00
Add check to see if testnet dir exists
This commit is contained in:
@@ -179,6 +179,13 @@ fn run_new_validator_subcommand<T: EthSpec>(
|
|||||||
.parse::<PathBuf>()
|
.parse::<PathBuf>()
|
||||||
.map_err(|e| format!("Unable to parse testnet-dir: {}", e))?;
|
.map_err(|e| format!("Unable to parse testnet-dir: {}", e))?;
|
||||||
|
|
||||||
|
if !testnet_dir.exists() {
|
||||||
|
return Err(format!(
|
||||||
|
"Testnet directory at {:?} does not exist",
|
||||||
|
testnet_dir
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
info!(
|
info!(
|
||||||
log,
|
log,
|
||||||
"Loading deposit contract address";
|
"Loading deposit contract address";
|
||||||
|
|||||||
Reference in New Issue
Block a user