From e569e0c55377cb1cb95069d99e126aa4d8eb2639 Mon Sep 17 00:00:00 2001 From: siddontang Date: Tue, 3 Feb 2015 14:15:11 +0800 Subject: [PATCH] panic add more information --- server/client_resp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/client_resp.go b/server/client_resp.go index a38096c..5588442 100644 --- a/server/client_resp.go +++ b/server/client_resp.go @@ -3,6 +3,7 @@ package server import ( "bufio" "errors" + "fmt" "github.com/siddontang/go/arena" "github.com/siddontang/go/hack" "github.com/siddontang/go/log" @@ -235,7 +236,7 @@ func (w *respWriter) writeArray(lst []interface{}) { case int64: w.writeInteger(v) default: - panic("invalid array type") + panic(fmt.Sprintf("invalid array type %T %v", lst[i], v)) } } }