Skip to content

Commit a747ac4

Browse files
author
Simple-Tracker
committed
Bug fix
1 parent fa7554d commit a747ac4

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func SetBlockListFromContent(blockListContent []string, blockListSource string)
205205
for index, content := range blockListContent {
206206
content = StrTrim(ProcessRemark(content))
207207
if content == "" {
208-
Log("Debug-SetBlockListFromContent_Compile", GetLangText("Error-Debug-EmptyLine"), false, index, blockListSource)
208+
Log("Debug-SetBlockListFromContent_Compile", GetLangText("Error-Debug-EmptyLineWithSource"), false, index, blockListSource)
209209
continue
210210
}
211211

@@ -331,7 +331,7 @@ func SetIPBlockListFromContent(ipBlockListContent []string, ipBlockListSource st
331331
for index, content := range ipBlockListContent {
332332
content = StrTrim(ProcessRemark(content))
333333
if content == "" {
334-
Log("Debug-SetIPBlockListFromContent_Compile", GetLangText("Error-Debug-EmptyLine"), false, index, ipBlockListSource)
334+
Log("Debug-SetIPBlockListFromContent_Compile", GetLangText("Error-Debug-EmptyLineWithSource"), false, index, ipBlockListSource)
335335
continue
336336
}
337337

i18n.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ var defaultLangContent = map[string]string{
9292
"Error-Task_NotSupportClient": "检测到不支持的客户端, 可能是未配置且未能自动检测客户端: %s",
9393
"Error-SyncWithServer_ServerError": "同步服务器错误: %s",
9494
"Error-Debug-EmptyLine": ":%d 为空",
95+
"Error-Debug-EmptyLineWithSource": ":%d 为空 (%s)",
9596
"Error-Debug-GetClientConfigPath_GetUserHomeDir": "获取 User Home 目录时发生了错误: %s",
9697
"Error-Debug-GetClientConfigPath_GetUserConfigDir": "获取 User Config 目录时发生了错误: %s",
9798
"Failed-LoadInitConfig": "读取配置文件失败或不完整",

lang/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"Error-Task_NotSupportClient": "Detected unsupport client, may not be configured and failed to automatically detect client type: %s",
8181
"Error-SyncWithServer_ServerError": "Sync server error: %s",
8282
"Error-Debug-EmptyLine": ":%d is empty",
83+
"Error-Debug-EmptyLineWithSource": ":%d is empty (%s)",
8384
"Error-Debug-GetClientConfigPath_GetUserHomeDir": "An error occurred while retrieving the User Home directory: %s",
8485
"Error-Debug-GetClientConfigPath_GetUserConfigDir": "An error occurred while retrieving the User Config directory: %s",
8586
"Failed-LoadInitConfig": "Failed to read config file or config file is incomplete",

0 commit comments

Comments
 (0)