From 5bcc226b2f560d7d3acac755af7cc29323ae4f22 Mon Sep 17 00:00:00 2001 From: Javad Date: Mon, 30 Dec 2024 09:47:35 +0330 Subject: [PATCH] fix: show error on failed open password file --- cmd/daemon/start.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/daemon/start.go b/cmd/daemon/start.go index fe2efc737..339c4bd08 100644 --- a/cmd/daemon/start.go +++ b/cmd/daemon/start.go @@ -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)