Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Simple-Tracker committed Jan 12, 2025
1 parent fa7554d commit a747ac4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions i18n.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": "读取配置文件失败或不完整",
Expand Down
1 change: 1 addition & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a747ac4

Please sign in to comment.