From 47a1cedde5fd5e085c04487f66059447955b62dd Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Thu, 27 Jan 2022 08:32:08 +0100 Subject: [PATCH] fix: invalid rule name in error message (#627) --- rule/argument-limit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rule/argument-limit.go b/rule/argument-limit.go index 21187b8..b30df3b 100644 --- a/rule/argument-limit.go +++ b/rule/argument-limit.go @@ -19,7 +19,7 @@ func (r *ArgumentsLimitRule) Apply(file *lint.File, arguments lint.Arguments) [] total, ok := arguments[0].(int64) // Alt. non panicking version if !ok { - panic(`invalid value passed as argument number to the "argument-list" rule`) + panic(`invalid value passed as argument number to the "argument-limit" rule`) } r.total = int(total) }