Skip to content

Commit

Permalink
Better kmd permission error message. Closes #1784 (#1785)
Browse files Browse the repository at this point in the history
Better kmd permission error message
  • Loading branch information
winder authored Jan 5, 2021
1 parent ab48bb6 commit a47bba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodecontrol/kmdControl.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (kc *KMDController) StartKMD(args KMDStartArgs) (alreadyRunning bool, err e
return false, errors.New("bad kmd data dir")
}
if (dataDirStat.Mode() & 0077) != 0 {
logging.Base().Errorf("%s: kmd data dir exists but is too permissive (%o)", kc.kmdDataDir, dataDirStat.Mode()&0777)
logging.Base().Errorf("%s: kmd data dir exists but is too permissive (%o), change to (%o)", kc.kmdDataDir, dataDirStat.Mode()&0777, DefaultKMDDataDirPerms)
return false, errors.New("kmd data dir not secure")
}
} else {
Expand Down

0 comments on commit a47bba3

Please sign in to comment.