summaryrefslogtreecommitdiff
path: root/xgbgen/go_list.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-05-02 01:46:30 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-05-02 01:46:30 -0400
commit552804d994db62e1002f13a8cfbbbc2359d99eef (patch)
tree1b88b3177a8a12a1e7da3b12f348dba27ee8a581 /xgbgen/go_list.go
parent590f8a3cd197f6fc344cd59fa19b2f2696baac43 (diff)
finally starting on the crescendo: requests and replies.
Diffstat (limited to 'xgbgen/go_list.go')
-rw-r--r--xgbgen/go_list.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xgbgen/go_list.go b/xgbgen/go_list.go
index a95ba71..67ecd34 100644
--- a/xgbgen/go_list.go
+++ b/xgbgen/go_list.go
@@ -41,7 +41,7 @@ func (f *ListField) Read(c *Context) {
f.SrcName(), t.SrcName(), f.LengthExpr.Reduce("v.", ""))
c.Putln("b += Read%sList(buf[b:], v.%s)", t.SrcName(), f.SrcName())
default:
- log.Fatalf("Cannot read list field '%s' with %T type.",
+ log.Panicf("Cannot read list field '%s' with %T type.",
f.XmlName(), f.Type)
}
}
@@ -70,7 +70,7 @@ func (f *ListField) Write(c *Context) {
case *Struct:
c.Putln("b += %sListBytes(buf[b:], v.%s)", t.SrcName(), f.SrcName())
default:
- log.Fatalf("Cannot read list field '%s' with %T type.",
+ log.Panicf("Cannot read list field '%s' with %T type.",
f.XmlName(), f.Type)
}
}