Fixed read tag to throw exception on file error unstead of looping forever.

This commit is contained in:
Brad Arant committed 2024-10-31 16:05:46 -07:00
1 parent bff2b4d2c5
commit 527e8bf778
4 files changed
+11 -8

No files matched your search

+6 -6
View File
@@ -75,12 +75,12 @@ namespace jet {
renderVariableName(variable, modifier, modifier, lvariables);
return;
}
else if(variable.startsWith("$[")) {
name << getVariable(variable, lvariables);
}
else if(variable.startsWith("#[")) {
name << getVariable(variable, lvariables);
}
else if(variable.startsWith("$[") || variable.startsWith("#["))
name << getVariable(variable, lvariables);
else if(variable.ifNext("]"))
return;
else if(!variable.ifNextInclude("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-"))
throw coreutils::Exception("invalid variable name.");
}
return;
}