From aa95801b2de1d48da97968d395c740e5a438a277 Mon Sep 17 00:00:00 2001 From: "Andrew Gallant (Ocelot)" Date: Fri, 11 May 2012 23:59:38 -0400 Subject: [PATCH] panic when an extension request is issued before an extension has been initialized. but give a nice error message for the happy people. --- nexgb/xgbgen/go_request_reply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("}")