projects
/
ejpi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Trying to better follow DRY
[ejpi]
/
src
/
history.py
diff --git
a/src/history.py
b/src/history.py
index
9a0b47f
..
dcd04fa
100644
(file)
--- a/
src/history.py
+++ b/
src/history.py
@@
-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):