mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 07:23:17 +08:00
Chore: print origin rule when format error (#92)
This commit is contained in:
parent
83fac44010
commit
bd6c6a9ad1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user