fix up inconsistent error types

This commit is contained in:
2024-04-09 19:22:43 +01:00
parent 42e12933bf
commit a8fb5d4c1f
15 changed files with 273 additions and 279 deletions

View File

@@ -76,7 +76,7 @@ func runVal(line any, stack stack, stacklevel int) (any, ArErr) {
return y, ArErr{}
}
return nil, ArErr{
TYPE: "TypeError",
TYPE: "Type Error",
message: "cannot negate a non-number",
EXISTS: true,
}