term.go: new member function errDivisionByZero()

This commit is contained in:
Celestino Amoroso 2024-12-28 19:14:34 +01:00
parent 52a627c747
commit 32686fac62

View File

@ -203,6 +203,10 @@ func (term *term) errIncompatibleType(value any) error {
term.source(), value, TypeName(value))
}
func (term *term) errDivisionByZero() error {
return term.tk.Errorf("division by zero")
}
func (term *term) Errorf(template string, args ...any) (err error) {
err = term.tk.Errorf(template, args...)
return