Trying to better follow DRY
[ejpi] / src / history.py
index 9a0b47f..dcd04fa 100644 (file)
@@ -21,7 +21,7 @@ _VARIABLE_VALIDATION_RE = re.compile("^[a-zA-Z0-9]+$")
 def validate_variable_name(variableName):
        match = _VARIABLE_VALIDATION_RE.match(variableName)
        if match is None:
-               raise RuntimeError("Invalid characters")
+               raise RuntimeError("Invalid characters in '%s'" % variableName)
 
 
 def parse_number(userInput):