From 3b75395670502466bed22e53fbe763a123687bf8 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Mon, 14 Jan 2019 10:35:11 +0800 Subject: [PATCH] Chore: print origin rule when format error (#92) --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index ea249dce..95f27721 100644 --- a/config/config.go +++ b/config/config.go @@ -324,7 +324,7 @@ func parseRules(cfg *rawConfig) ([]C.Rule, error) { payload = rule[1] target = rule[2] default: - return nil, fmt.Errorf("Rules[%d] error: format invalid", idx) + return nil, fmt.Errorf("Rules[%d] [- %s] error: format invalid", idx, line) } rule = trimArr(rule)