fix: reject commands with parse errors (#2640)

This commit is contained in:
valoq authored and GitHub committed 2026-11-12 15:00:32 +01:00
1 parent 901322f428
commit bdb4d901d1
3 files changed
+62 -4

No files matched your search

+2
View File
@@ -187,6 +187,8 @@ func readExpr() <-chan expr {
p := newParser(strings.NewReader(s.Text()))
if p.parse() {
ch <- p.expr
} else if p.err != nil {
ch <- &callExpr{"echoerr", []string{p.err.Error()}, 1}
}
}
}