fix: bug of loss dequate

This commit is contained in:
2023-11-09 20:02:52 +08:00
parent 12ffce995b
commit 6ae4d56a03
3 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ std::any VariableContainer::ReadVariable(const std::string &name) {
if (top.find(name) != top.end()) return top[name];
}
if (GlobalScope.find(name) != GlobalScope.end()) return GlobalScope[name];
throw InterpretException(("ReadVariable: " + name + " not found").c_str());
throw InterpretException(("ReadVariable: not found"));
}
void VariableContainer::WriteVariable(const std::string &name,
const std::any &value, bool cover) {