term.go: new member function errDivisionByZero()
This commit is contained in:
parent
52a627c747
commit
32686fac62
4
term.go
4
term.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user