Skip to content

Conversation

@0xjac
Copy link

@0xjac 0xjac commented Jul 12, 2023

Closes #61

cmd/wallet.go Outdated
cobra.CheckErr(err)

if pass != confirm {
_, _ = fmt.Fprintln(os.Stderr, "Error: Passwords do not match.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use log.Fatalln instead, as below.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Fixed! I was trying to imitate cobra.CheckErr. I should have read further. 🤦

@lrettig lrettig added the Community Contribution Contribution from the open source community label Jul 12, 2023
@0xjac 0xjac force-pushed the fix/61-confirm-password branch from cf6ece4 to cc05f2b Compare July 12, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution Contribution from the open source community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ask for wallet file password twice

2 participants