about summary refs log tree commit diff
path: root/pkg/lang/vm/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/vm/errors.go')
-rw-r--r--pkg/lang/vm/errors.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/lang/vm/errors.go b/pkg/lang/vm/errors.go
index 640ab21..4781179 100644
--- a/pkg/lang/vm/errors.go
+++ b/pkg/lang/vm/errors.go
@@ -92,11 +92,11 @@ func (e ErrArrayIndexOutOfBounds) Error() string {
 	return fmt.Sprintf("array index out of bounds: %d (len: %d)", e.Index, e.Len)
 }
 
-type ErrNotEnoughArguments struct {
+type ErrWrongNumberOfArguments struct {
 	Needed uint
 	Got    uint
 }
 
-func (e ErrNotEnoughArguments) Error() string {
-	return fmt.Sprintf("not enough arguments: needed %d, got %d", e.Needed, e.Got)
+func (e ErrWrongNumberOfArguments) Error() string {
+	return fmt.Sprintf("wrong number of arguments: needed %d, got %d", e.Needed, e.Got)
 }