diff --git a/config.go b/config.go index bd9198f..4fe5b35 100644 --- a/config.go +++ b/config.go @@ -205,7 +205,7 @@ func SetBlockListFromContent(blockListContent []string, blockListSource string) for index, content := range blockListContent { content = StrTrim(ProcessRemark(content)) if content == "" { - Log("Debug-SetBlockListFromContent_Compile", GetLangText("Error-Debug-EmptyLine"), false, index, blockListSource) + Log("Debug-SetBlockListFromContent_Compile", GetLangText("Error-Debug-EmptyLineWithSource"), false, index, blockListSource) continue } @@ -331,7 +331,7 @@ func SetIPBlockListFromContent(ipBlockListContent []string, ipBlockListSource st for index, content := range ipBlockListContent { content = StrTrim(ProcessRemark(content)) if content == "" { - Log("Debug-SetIPBlockListFromContent_Compile", GetLangText("Error-Debug-EmptyLine"), false, index, ipBlockListSource) + Log("Debug-SetIPBlockListFromContent_Compile", GetLangText("Error-Debug-EmptyLineWithSource"), false, index, ipBlockListSource) continue } diff --git a/i18n.go b/i18n.go index 395bc5a..add6288 100644 --- a/i18n.go +++ b/i18n.go @@ -92,6 +92,7 @@ var defaultLangContent = map[string]string{ "Error-Task_NotSupportClient": "检测到不支持的客户端, 可能是未配置且未能自动检测客户端: %s", "Error-SyncWithServer_ServerError": "同步服务器错误: %s", "Error-Debug-EmptyLine": ":%d 为空", + "Error-Debug-EmptyLineWithSource": ":%d 为空 (%s)", "Error-Debug-GetClientConfigPath_GetUserHomeDir": "获取 User Home 目录时发生了错误: %s", "Error-Debug-GetClientConfigPath_GetUserConfigDir": "获取 User Config 目录时发生了错误: %s", "Failed-LoadInitConfig": "读取配置文件失败或不完整", diff --git a/lang/en.json b/lang/en.json index b77091d..1b1d5aa 100644 --- a/lang/en.json +++ b/lang/en.json @@ -80,6 +80,7 @@ "Error-Task_NotSupportClient": "Detected unsupport client, may not be configured and failed to automatically detect client type: %s", "Error-SyncWithServer_ServerError": "Sync server error: %s", "Error-Debug-EmptyLine": ":%d is empty", + "Error-Debug-EmptyLineWithSource": ":%d is empty (%s)", "Error-Debug-GetClientConfigPath_GetUserHomeDir": "An error occurred while retrieving the User Home directory: %s", "Error-Debug-GetClientConfigPath_GetUserConfigDir": "An error occurred while retrieving the User Config directory: %s", "Failed-LoadInitConfig": "Failed to read config file or config file is incomplete",