packing: Better panic message

This commit is contained in:
Hajime Hoshi 2019-11-18 00:27:34 +09:00
parent 63f9ac2ccc
commit 95d3561a3a

View File

@ -211,7 +211,7 @@ func walk(n *Node, f func(n *Node) error) error {
func (p *Page) Extend(count int) bool { func (p *Page) Extend(count int) bool {
if p.rollbackExtension != nil { if p.rollbackExtension != nil {
panic("packing: Extend cannot be called just after Extend") panic("packing: Extend cannot be called without rolling back or commiting")
} }
if p.size >= p.maxSize { if p.size >= p.maxSize {