diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-02 01:46:30 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-02 01:46:30 -0400 |
| commit | 552804d994db62e1002f13a8cfbbbc2359d99eef (patch) | |
| tree | 1b88b3177a8a12a1e7da3b12f348dba27ee8a581 /xgbgen/go_list.go | |
| parent | 590f8a3cd197f6fc344cd59fa19b2f2696baac43 (diff) | |
finally starting on the crescendo: requests and replies.
Diffstat (limited to 'xgbgen/go_list.go')
| -rw-r--r-- | xgbgen/go_list.go | 4 |
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) } } |
