Skip to content

Commit

Permalink
Add a log entry to get when varaibles are not found
Browse files Browse the repository at this point in the history
  • Loading branch information
luan-cestari committed Feb 6, 2015
1 parent a8a2535 commit d45f361
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ protected String prepare(String query) {
private int[] getVariableIndexes(String name) {
int[] indexes = variablesMap.get(name);
if (indexes == null) {
LOGGER.debug("getVariableIndexes didn't find the variable:{} in :{}", name, variablesMap.keySet());
throw new IllegalStateException("Parameter not found: " + name);
}
return indexes;
Expand Down

0 comments on commit d45f361

Please sign in to comment.