From 60d83288dfc7bcd564dd77b6be3e565370e3a312 Mon Sep 17 00:00:00 2001 From: Christopher Ramey Date: Sat, 15 Aug 2020 18:32:45 -0800 Subject: [PATCH] Fixed off-by-one error in config parse error line output --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index f5eaeed..2c71ca9 100644 --- a/config.go +++ b/config.go @@ -86,7 +86,7 @@ func ReadConfig(fn string) (*AlrmConfig, error) { parser.SetState(TK_MONITOR) default: return nil, fmt.Errorf("Invalid token in %s, line %d: \"%s\"", - fn, parser.Line, tk) + fn, parser.Line+1, tk) } case TK_MONITOR: