Skip to content

Commit

Permalink
fix: show error on failed open password file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Dec 30, 2024
1 parent c8b8e94 commit 5bcc226
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/daemon/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ func buildStartCmd(parentCmd *cobra.Command) {
password = *passwordOpt
} else if *passwordFromFileOpt != "" {
b, err := util.ReadFile(*passwordFromFileOpt)
if err != nil {
return "", false
}
cmd.FatalErrorCheck(err)
password = strings.TrimSpace(string(b))
} else {
password = cmd.PromptPassword("Wallet password", false)
Expand Down

0 comments on commit 5bcc226

Please sign in to comment.