Value::lookup throw NoField

This commit is contained in:
Michael Davidsaver
2023-01-25 11:09:51 -08:00
parent b17f820767
commit e7d7f185d4
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -932,6 +932,9 @@ void Value::traverse(const std::string &expr, bool modify, bool dothrow)
throw std::runtime_error(SB()<<"indexing syntax error or wrong field type (can't index scalar array) in '"<<expr<<"'");
}
}
if(!desc && dothrow)
throw NoField();
}
Value Value::operator[](const std::string& name)