InputConfigDiag: Add a simple error status label

This tells you what you did wrong at a high level if you messed up.
This commit is contained in:
Jasper St. Pierre
2013-07-22 02:36:26 -04:00
parent 3c7f223aa1
commit bc17798ef2
4 changed files with 21 additions and 3 deletions

View File

@ -228,9 +228,7 @@ void ControllerInterface::UpdateReference(ControllerInterface::ControlReference*
ref->parsed_expression = NULL;
ControlFinder finder(*this, default_device, ref->is_input);
ExpressionParseStatus status;
status = ParseExpression(ref->expression, finder, &ref->parsed_expression);
// XXX: do something with status?
ref->parse_error = ParseExpression(ref->expression, finder, &ref->parsed_expression);
}
//

View File

@ -64,6 +64,7 @@ public:
ControlState range;
std::string expression;
const bool is_input;
ciface::ExpressionParser::ExpressionParseStatus parse_error;
virtual ~ControlReference() {
delete parsed_expression;