Fix: log correctly path

This commit is contained in:
Dreamacro 2019-06-27 22:56:24 +08:00
parent 53528f8275
commit 662038e40e

View File

@ -116,7 +116,7 @@ func readConfig(path string) (*rawConfig, error) {
}
if len(data) == 0 {
return nil, fmt.Errorf("Configuration file %s is empty", C.Path.Config())
return nil, fmt.Errorf("Configuration file %s is empty", path)
}
// config with some default value