Fixed read tag to throw exception on file error unstead of looping forever.
This commit is contained in:
1 parent
bff2b4d2c5
commit
527e8bf778
4 files changed
+11
-8
No files matched your search
+6
-6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user