Write non-error output to stdout (#9960)

automerge
This commit is contained in:
Michael Vines 2020-05-11 08:39:10 -07:00 committed by GitHub
parent 1f9d0fc284
commit b4b4d6b00d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,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(())
}
@ -434,7 +434,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): ",
)?
@ -451,7 +451,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
);