aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-27 03:36:54 +0800
committerobscuren <geffobscura@gmail.com>2015-02-27 03:36:54 +0800
commitcc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f (patch)
tree2dbaaa052fa6c437a8791776e20453d5bcf143f5 /eth
parent3a7c8d7ae48ef98afd1264d66648442ca113a386 (diff)
downloadgo-tangerine-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.tar
go-tangerine-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.tar.gz
go-tangerine-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.tar.bz2
go-tangerine-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.tar.lz
go-tangerine-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.tar.xz
go-tangerine-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.tar.zst
go-tangerine-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.zip
Report proper database directory. Closes #397
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 0e5d24429..f67f9c78b 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -147,7 +147,8 @@ func New(config *Config) (*Ethereum, error) {
d, _ := db.Get([]byte("ProtocolVersion"))
protov := ethutil.NewValue(d).Uint()
if protov != ProtocolVersion && protov != 0 {
- return nil, fmt.Errorf("Database version mismatch. Protocol(%d / %d). `rm -rf %s`", protov, ProtocolVersion, ethutil.Config.ExecPath+"/database")
+ path := path.Join(config.DataDir, "database")
+ return nil, fmt.Errorf("Database version mismatch. Protocol(%d / %d). `rm -rf %s`", protov, ProtocolVersion, path)
}
// Create new keymanager