chore: revert keys add ui change (#11648)

This commit is contained in:
Julien Robert 2022-04-15 15:30:20 +02:00 committed by GitHub
parent 53a6f199fe
commit 11a9da171d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,15 +298,7 @@ func printCreate(cmd *cobra.Command, k *keyring.Record, showMnemonic bool, mnemo
// print mnemonic unless requested not to.
if showMnemonic {
if _, err := fmt.Fprintf(
cmd.ErrOrStderr(),
`
*Important** write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password.
%s
`, mnemonic); err != nil {
if _, err := fmt.Fprintln(cmd.ErrOrStderr(), fmt.Sprintf("\n**Important** write this mnemonic phrase in a safe place.\nIt is the only way to recover your account if you ever forget your password.\n\n%s\n", mnemonic)); err != nil {
return fmt.Errorf("failed to print mnemonic: %v", err)
}
}