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)
downloaddexon-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.tar
dexon-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.tar.gz
dexon-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.tar.bz2
dexon-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.tar.lz
dexon-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.tar.xz
dexon-cc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f.tar.zst
dexon-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