0

Provide better validation error message for markers

Helps clarify #734
This commit is contained in:
Andrew Chin
2012-05-14 10:03:05 -04:00
parent 6009461239
commit 792fcbbc0d

View File

@@ -47,6 +47,8 @@ def validateMarkers(filterlist):
if type(filterlist) != list:
raise ValidationException("Markers must specify a list of filters. This has recently changed, so check the docs.")
for x in filterlist:
if type(x) != dict:
raise ValidationException("Markers must specify a list of dictionaries. This has recently changed, so check the docs.")
if "name" not in x:
raise ValidationException("Must define a name")
if "filterFunction" not in x: