add try catch

This commit is contained in:
2023-03-28 16:00:17 +01:00
parent 5a785cbbc6
commit efd43ad72d
5 changed files with 91 additions and 4 deletions

View File

@@ -152,7 +152,7 @@ func indexGetParse(code UNPARSEcode, index int, codelines []UNPARSEcode) (ArMapG
return ArMapGet{tival, args, true, code.line, code.realcode, code.path}, true, ArErr{}, 1
}
return ArMapGet{}, false, ArErr{
"SyntaxError",
"Syntax Error",
"invalid index get",
code.line,
code.path,