mirror of
https://github.com/status-im/op-geth.git
synced 2025-01-16 17:54:15 +00:00
fix logmessage if data directory doesn't exist
This commit is contained in:
parent
1b74b98f90
commit
2d48fc1113
@ -77,7 +77,7 @@ func InitDataDir(Datadir string) {
|
|||||||
_, err := os.Stat(Datadir)
|
_, err := os.Stat(Datadir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
fmt.Printf("Debug logging directory '%s' doesn't exist, creating it\n", Datadir)
|
fmt.Printf("Data directory '%s' doesn't exist, creating it\n", Datadir)
|
||||||
os.Mkdir(Datadir, 0777)
|
os.Mkdir(Datadir, 0777)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user