term.go: better error message in term.toInt()

This commit is contained in:
Celestino Amoroso 2024-05-01 07:09:18 +02:00
parent 6a2d3c53fd
commit dc6975e56c

View File

@ -154,7 +154,7 @@ func (self *term) toInt(computedValue any, valueDescription string) (i int, err
if index64, ok := computedValue.(int64); ok {
i = int(index64)
} else {
err = self.Errorf("%s, got %T", valueDescription, computedValue)
err = self.Errorf("%s, got %T (%v)", valueDescription, computedValue, computedValue)
}
return
}