mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 16:32:11 +01:00
Change error "?foo" to status "?foo"
This commit is contained in:
1 parent
203b45e869
commit
eec0fce647
18 files changed
+196
-231
No files matched your search
+2
-9
@@ -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, '.')
|
||||
|
||||
Reference in new issue
Block a user