@@ -268,7 +268,7 @@ func SetBlockListFromFile() bool {
268
268
if filepath .Ext (filePath ) == ".json" {
269
269
err = json .Unmarshal (blockListContent , & content )
270
270
if err != nil {
271
- Log ("SetBlockListFromFile" , GetLangText ("Error-GenJSON " ), true , filePath )
271
+ Log ("SetBlockListFromFile" , GetLangText ("Error-GenJSONWithID " ), true , filePath , err . Error () )
272
272
continue
273
273
}
274
274
} else {
@@ -307,7 +307,7 @@ func SetBlockListFromURL() bool {
307
307
if strings .HasSuffix (strings .ToLower (strings .Split (httpHeader .Get ("Content-Type" ), ";" )[0 ]), "json" ) {
308
308
err := json .Unmarshal (blockListContent , & content )
309
309
if err != nil {
310
- Log ("SetBlockListFromFile" , GetLangText ("Error-GenJSON " ), true , blockListURL )
310
+ Log ("SetBlockListFromFile" , GetLangText ("Error-GenJSONWithID " ), true , blockListURL , err . Error () )
311
311
continue
312
312
}
313
313
} else {
@@ -382,7 +382,7 @@ func SetIPBlockListFromFile() bool {
382
382
if filepath .Ext (filePath ) == ".json" {
383
383
err := json .Unmarshal (ipBlockListFile , & content )
384
384
if err != nil {
385
- Log ("SetIPBlockListFromFile" , GetLangText ("Error-GenJSON " ), true , filePath )
385
+ Log ("SetIPBlockListFromFile" , GetLangText ("Error-GenJSONWithID " ), true , filePath , err . Error () )
386
386
}
387
387
} else {
388
388
content = strings .Split (string (ipBlockListFile ), "\n " )
@@ -418,7 +418,7 @@ func SetIPBlockListFromURL() bool {
418
418
if strings .HasSuffix (httpHeader .Get ("Content-Type" ), "json" ) {
419
419
err := json .Unmarshal (ipBlockListContent , & content )
420
420
if err != nil {
421
- Log ("SetIPBlockListFromURL" , GetLangText ("Error-GenJSON " ), true , ipBlockListURL )
421
+ Log ("SetIPBlockListFromURL" , GetLangText ("Error-GenJSONWithID " ), true , ipBlockListURL , err . Error () )
422
422
continue
423
423
}
424
424
} else {
0 commit comments