fix: print error message when wallets folder isn't exist
This commit is contained in:
parent
2de9e5568d
commit
f155e77c5f
1 changed files with 7 additions and 1 deletions
|
@ -201,7 +201,13 @@ func (c *Cli) addEntry() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.error(fmt.Sprintf("%s", err))
|
c.error(fmt.Sprintf("%s", err))
|
||||||
}
|
}
|
||||||
c.Wallet.Save()
|
|
||||||
|
err = c.Wallet.Save()
|
||||||
|
if err != nil {
|
||||||
|
c.error(fmt.Sprintf("%s", err))
|
||||||
|
}
|
||||||
|
|
||||||
|
fmt.Println("the entry has been added")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update an entry in wallet
|
// Update an entry in wallet
|
||||||
|
|
Loading…
Reference in a new issue