Commit e5a31e59 authored by Adam P. Goucher's avatar Adam P. Goucher

More informative error message

parent 94939f39
Pipeline #44464303 passed with stages
in 7 minutes and 56 seconds
......@@ -37,6 +37,8 @@ def sanirule(rulestring):
if '.' in rulestring:
rulestring = rule2files(rulestring)
if (rulestring[0] != 'x'):
raise ValueError("Rules specified by table/tree/code files must begin with a capital letter.")
rulestring = rulestring.lower()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment