panic add more information

This commit is contained in:
siddontang 2015-02-03 14:15:11 +08:00
parent 84002e0499
commit e569e0c553
1 changed files with 2 additions and 1 deletions

View File

@ -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))
}
}
}