Skip to content

Commit

Permalink
add log message when variable can't be resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Kang committed Mar 29, 2015
1 parent ff4eefc commit 377377a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public Object resolveVariable(String varName) throws EvaluationException
if (idx >= 0)
return this.currentInputRow.getFieldValue(idx);
else
logger.error("Can't recognize var " + varName);
//TODO shall throw a message "can't resolve the variable"
throw EvaluationException.getInstance(LibFormulaErrorValue.ERROR_NOTDEFINED_VALUE);
}
Expand All @@ -110,6 +111,7 @@ else if (prefix.equalsIgnoreCase("OUT"))
if (idx >= 0)
return this.currentOutputRow.getFieldValue(idx);
else
logger.error("Can't recognize var " + varName);
//TODO shall throw a message "can't resolve the variable"
throw EvaluationException.getInstance(LibFormulaErrorValue.ERROR_NOTDEFINED_VALUE);

Expand Down

0 comments on commit 377377a

Please sign in to comment.