From 2808c4fe40fc65cccde6b84030a4a4b130cff306 Mon Sep 17 00:00:00 2001 From: "John C. Vernaleo" Date: Thu, 11 Feb 2016 10:22:28 -0500 Subject: [PATCH] If wallet already exists show path. This was initially pointed out by davec in decred/dcrwallet#18 --- config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index fd1641d..8bf7846 100644 --- a/config.go +++ b/config.go @@ -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 }