If wallet already exists show path.

This was initially pointed out by davec in
decred/dcrwallet#18
This commit is contained in:
John C. Vernaleo 2016-02-11 10:22:28 -05:00
parent 567752ea9b
commit 2808c4fe40

View file

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