fix: print error message when wallets folder isn't exist

This commit is contained in:
Adrien Waksberg 2019-07-22 22:31:28 +02:00
parent 2de9e5568d
commit f155e77c5f

View file

@ -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