diff --git a/config/lang/check_types.go b/config/lang/check_types.go index 5015781e8..85d720fa8 100644 --- a/config/lang/check_types.go +++ b/config/lang/check_types.go @@ -96,7 +96,7 @@ func (v *TypeCheck) visitConcat(n *ast.Concat) { for i, t := range types { if t != ast.TypeString { v.createErr(n, fmt.Sprintf( - "argument %d must be a sting", n, i+1)) + "argument %d must be a string", i+1)) return } } diff --git a/config/lang/lex.go b/config/lang/lex.go index ed1f8fb64..a1172b420 100644 --- a/config/lang/lex.go +++ b/config/lang/lex.go @@ -77,7 +77,7 @@ func (x *parserLex) lex(yylval *parserSymType) int { case parserModeInterpolation: return x.lexModeInterpolation(yylval) default: - x.Error(fmt.Sprintf("Unknown parse mode: %s", x.mode)) + x.Error(fmt.Sprintf("Unknown parse mode: %d", x.mode)) return lexEOF } }