Fixed the awful rule110 implementation

This commit is contained in:
2022-11-28 16:48:45 +00:00
parent 70698a4a1a
commit 584fb115b6
4 changed files with 44 additions and 60 deletions

View File

@@ -1592,7 +1592,8 @@ static bool execIndex(Interpreter* interpreter, bool assignIntermediate) {
}
if (!IS_ARRAY(compound) && !IS_DICTIONARY(compound) && !IS_STRING(compound)) {
interpreter->errorOutput("Unknown compound found in indexing notation\n");
interpreter->errorOutput("Unknown compound found in indexing notation: ");
printLiteralCustom(compound, interpreter->errorOutput);
freeLiteral(third);
freeLiteral(second);
freeLiteral(first);