Write non-error output to stdout (#9960) (#9972)

automerge
This commit is contained in:
mergify[bot]
2020-05-11 10:18:15 -07:00
committed by GitHub
parent 52e27712e1
commit 9652e832c2

View File

@ -75,7 +75,7 @@ fn output_keypair(
write_keypair(&keypair, &mut stdout)?;
} else {
write_keypair_file(&keypair, outfile)?;
eprintln!("Wrote {} keypair to {}", source, outfile);
println!("Wrote {} keypair to {}", source, outfile);
}
Ok(())
}
@ -443,7 +443,7 @@ fn do_main(matches: &ArgMatches<'_>) -> Result<(), Box<dyn error::Error>> {
let passphrase = if matches.is_present("no_passphrase") {
NO_PASSPHRASE.to_string()
} else {
eprintln!("Generating a new keypair");
println!("Generating a new keypair");
prompt_passphrase(
"For added security, enter a passphrase (empty for no passphrase): ",
)?
@ -459,7 +459,7 @@ fn do_main(matches: &ArgMatches<'_>) -> Result<(), Box<dyn error::Error>> {
if !silent {
let phrase: &str = mnemonic.phrase();
let divider = String::from_utf8(vec![b'='; phrase.len()]).unwrap();
eprintln!(
println!(
"{}\npubkey: {}\n{}\nSave this seed phrase to recover your new keypair:\n{}\n{}",
&divider, keypair.pubkey(), &divider, phrase, &divider
);