Improve error message on solana-keygen new
filesystem permission errors
This commit is contained in:
@ -457,7 +457,8 @@ fn do_main(matches: &ArgMatches<'_>) -> Result<(), Box<dyn error::Error>> {
|
|||||||
let keypair = keypair_from_seed(seed.as_bytes())?;
|
let keypair = keypair_from_seed(seed.as_bytes())?;
|
||||||
|
|
||||||
if let Some(outfile) = outfile {
|
if let Some(outfile) = outfile {
|
||||||
output_keypair(&keypair, &outfile, "new")?;
|
output_keypair(&keypair, &outfile, "new")
|
||||||
|
.map_err(|err| format!("Unable to write {}: {}", outfile, err))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let silent = matches.is_present("silent");
|
let silent = matches.is_present("silent");
|
||||||
|
Reference in New Issue
Block a user