Folder cannot move to itself. fix #8

This commit is contained in:
zicla
2018-01-17 20:10:20 +08:00
parent f67b7b3ca6
commit e38520c0b0
2 changed files with 13 additions and 3 deletions

View File

@ -152,7 +152,7 @@ func PrepareConfigs() {
filePath := GetConfPath() + "/tank.json"
content, err := ioutil.ReadFile(filePath)
if err != nil {
LogWarning(fmt.Sprintf("无法找到配置文件,使用默认配置项:%s,%v", filePath, err))
LogWarning(fmt.Sprintf("无法找到配置文件%s,错误:%v\n将使用config.go中的默认配置项。", filePath, err))
} else {
// 用 json.Unmarshal
err := json.Unmarshal(content, CONFIG)