parent
3b78be83cf
commit
965ad778dd
|
@ -110,9 +110,10 @@ pub fn parse_args(matches: &ArgMatches<'_>) -> Result<CliConfig, Box<dyn error::
|
||||||
} else {
|
} else {
|
||||||
let default_keypair_path = CliConfig::default_keypair_path();
|
let default_keypair_path = CliConfig::default_keypair_path();
|
||||||
if !std::path::Path::new(&default_keypair_path).exists() {
|
if !std::path::Path::new(&default_keypair_path).exists() {
|
||||||
return Err(CliError::KeypairFileNotFound(
|
return Err(CliError::KeypairFileNotFound(format!(
|
||||||
"Generate a new keypair with `solana-keygen new`".to_string(),
|
"Generate a new keypair at {} with `solana-keygen new`",
|
||||||
)
|
default_keypair_path
|
||||||
|
))
|
||||||
.into());
|
.into());
|
||||||
}
|
}
|
||||||
default_keypair_path
|
default_keypair_path
|
||||||
|
|
Loading…
Reference in New Issue