summaryrefslogtreecommitdiff
path: root/plugin/maxmind/asn_csv.go
diff options
context:
space:
mode:
authorLoyalsoldier <[email protected]>2024-08-31 12:34:38 +0800
committerLoyalsoldier <[email protected]>2024-08-31 12:34:38 +0800
commit1e4cb746b9ca67b9d9dabdc65f42f495eb4cfbcd (patch)
treeee3de1a60416c7f56dcc99a2cf7715b9b8f4e5a2 /plugin/maxmind/asn_csv.go
parentdeff06ac0f59751bb9857bc7d645b756b6133ddf (diff)
Chore: make error messages consistent across formats
Diffstat (limited to 'plugin/maxmind/asn_csv.go')
-rw-r--r--plugin/maxmind/asn_csv.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/maxmind/asn_csv.go b/plugin/maxmind/asn_csv.go
index e738a44b..8c90d60d 100644
--- a/plugin/maxmind/asn_csv.go
+++ b/plugin/maxmind/asn_csv.go
@@ -129,7 +129,7 @@ func (g *geoLite2ASNCSV) Input(container lib.Container) (lib.Container, error) {
}
if len(entries) == 0 {
- return nil, fmt.Errorf("❌ [type %s | action %s] no entry is generated", typeASNCSV, g.Action)
+ return nil, fmt.Errorf("❌ [type %s | action %s] no entry is generated", g.Type, g.Action)
}
var ignoreIPType lib.IgnoreIPOption
@@ -190,7 +190,7 @@ func (g *geoLite2ASNCSV) process(file string, entries map[string]*lib.Entry) err
}
if len(record) < 2 {
- return fmt.Errorf("❌ [type %s | action %s] invalid record: %v", typeASNCSV, g.Action, record)
+ return fmt.Errorf("❌ [type %s | action %s] invalid record: %v", g.Type, g.Action, record)
}
if listArr, found := g.Want[strings.TrimSpace(record[1])]; found {