Change error "?foo" to status "?foo"

This commit is contained in:
Nigel Tao committed 2018-08-12 21:31:56 +10:00
1 parent 203b45e869
commit eec0fce647
18 files changed
+196 -231

No files matched your search

+2 -9
View File
@@ -78,15 +78,8 @@ func (n *Expr) appendStr(buf []byte, tm *t.Map, parenthesize bool, depth uint32)
} else {
switch n.id0 {
case t.IDError, t.IDStatus, t.IDSuspension:
switch n.id0 {
case t.IDError:
buf = append(buf, "error "...)
case t.IDStatus:
buf = append(buf, "status "...)
case t.IDSuspension:
buf = append(buf, "suspension "...)
}
case t.IDStatus:
buf = append(buf, "status "...)
if n.id1 != 0 {
buf = append(buf, tm.ByID(n.id1)...)
buf = append(buf, '.')