diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-06 17:48:40 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-06 17:48:40 -0400 |
| commit | 26191c0f45bd6a112085c44c271a135d65c80f18 (patch) | |
| tree | 1ab3980e5daef82c6da6832dfb9c89543612d1f0 /xgbgen/go_error.go | |
| parent | 57ae07f66541348497db9a5bb84c99770e7b14c1 (diff) | |
add more extension cruft. make extension checking more uniform.
Diffstat (limited to 'xgbgen/go_error.go')
| -rw-r--r-- | xgbgen/go_error.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xgbgen/go_error.go b/xgbgen/go_error.go index 152db8b..0222289 100644 --- a/xgbgen/go_error.go +++ b/xgbgen/go_error.go @@ -64,7 +64,7 @@ func (e *Error) ImplementsError(c *Context) { c.Putln("}") c.Putln("") c.Putln("func (err %s) BadId() Id {", e.ErrType()) - if c.protocol.Name == "xproto" { + if !c.protocol.isExt() { c.Putln("return Id(err.BadValue)") } else { c.Putln("return 0") |
