aboutsummaryrefslogtreecommitdiff
path: root/nexgb
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-11 23:59:38 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-11 23:59:38 -0400
commitaa95801b2de1d48da97968d395c740e5a438a277 (patch)
treebdf76cff30538186a71ccfc0834ef602e2b3eb73 /nexgb
parent29942bf078c92fea681e42ca5029592526f00718 (diff)
downloadhaven-aa95801b2de1d48da97968d395c740e5a438a277.tar.gz
haven-aa95801b2de1d48da97968d395c740e5a438a277.tar.xz
haven-aa95801b2de1d48da97968d395c740e5a438a277.zip
panic when an extension request is issued before an extension has been initialized. but give a nice error message for the happy people.
Diffstat (limited to 'nexgb')
-rw-r--r--nexgb/xgbgen/go_request_reply.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/nexgb/xgbgen/go_request_reply.go b/nexgb/xgbgen/go_request_reply.go
index 62d9936..ee5c974 100644
--- a/nexgb/xgbgen/go_request_reply.go
+++ b/nexgb/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("}")