mirror of https://github.com/ledisdb/ledisdb.git
panic add more information
This commit is contained in:
parent
84002e0499
commit
e569e0c553
|
@ -3,6 +3,7 @@ package server
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"github.com/siddontang/go/arena"
|
"github.com/siddontang/go/arena"
|
||||||
"github.com/siddontang/go/hack"
|
"github.com/siddontang/go/hack"
|
||||||
"github.com/siddontang/go/log"
|
"github.com/siddontang/go/log"
|
||||||
|
@ -235,7 +236,7 @@ func (w *respWriter) writeArray(lst []interface{}) {
|
||||||
case int64:
|
case int64:
|
||||||
w.writeInteger(v)
|
w.writeInteger(v)
|
||||||
default:
|
default:
|
||||||
panic("invalid array type")
|
panic(fmt.Sprintf("invalid array type %T %v", lst[i], v))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue