If wallet already exists show path.
This was initially pointed out by davec in decred/dcrwallet#18
This commit is contained in:
parent
567752ea9b
commit
2808c4fe40
1 changed files with 2 additions and 1 deletions
|
@ -414,7 +414,8 @@ func loadConfig() (*config, []string, error) {
|
|||
// Error if the create flag is set and the wallet already
|
||||
// exists.
|
||||
if dbFileExists {
|
||||
err := fmt.Errorf("The wallet already exists.")
|
||||
err := fmt.Errorf("The wallet database file `%v` "+
|
||||
"already exists.", dbPath)
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
return nil, nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue