diff --git a/netmap/policy.go b/netmap/policy.go index 6139f9ff..28b53900 100644 --- a/netmap/policy.go +++ b/netmap/policy.go @@ -553,6 +553,7 @@ func writeFilterStringTo(w io.StringWriter, f netmap.Filter) error { func (p *PlacementPolicy) DecodeString(s string) error { input := antlr.NewInputStream(s) lexer := parser.NewQueryLexer(input) + lexer.RemoveErrorListeners() stream := antlr.NewCommonTokenStream(lexer, 0) pp := parser.NewQuery(stream)