diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-11 23:59:38 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-11 23:59:38 -0400 |
| commit | a47f2876d43c65fd9c5af9db7437801f8d2893e4 (patch) | |
| tree | cb7b761d444fcf541f4c2c3e4f549c011cfb870d | |
| parent | d3b0a6b2da335ee0f2d4e4b01d708d73ea373f2c (diff) | |
panic when an extension request is issued before an extension has been initialized. but give a nice error message for the happy people.
| -rw-r--r-- | xgbgen/go_request_reply.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xgbgen/go_request_reply.go b/xgbgen/go_request_reply.go index 62d9936..ee5c974 100644 --- a/xgbgen/go_request_reply.go +++ b/xgbgen/go_request_reply.go @@ -81,7 +81,7 @@ func (r *Request) CheckExt(c *Context) { } c.Putln("if _, ok := c.Extensions[\"%s\"]; !ok {", strings.ToUpper(c.protocol.ExtXName)) - c.Putln("panic(\"Cannot issue request '%s' using the uninitialized " + + c.Putln("panic(\"Cannot issue request '%s' using the uninitialized "+ "extension '%s'. %s.Init(connObj) must be called first.\")", r.SrcName(), c.protocol.ExtXName, c.protocol.PkgName()) c.Putln("}") |
