core/rawdb: restore error message

This commit is contained in:
healthykim 2026-06-29 20:23:56 +02:00
parent 65c0ea433a
commit f86b4ab086

View file

@ -620,6 +620,7 @@ func (t *freezerTable) truncateHead(items uint64) error {
// at the head, so we have to align the table down to the new head.
return t.resetTo(items)
}
return errors.New("truncation below tail")
}
// We need to truncate, save the old size for metrics tracking