Skip to content
Snippets Groups Projects
Commit 8c0819be authored by Andy Boughton's avatar Andy Boughton Committed by Raniere Silva
Browse files

Minor changes to make error messages consistent, and possibly less crashy....

Minor changes to make error messages consistent, and possibly less crashy. Still need unit tests to trigger this code.
parent 0b370670
Branches
Tags
No related merge requests found
......@@ -431,7 +431,7 @@ class ReferencePageValidator(MarkdownValidator):
if len(glossary_entry) < 2:
logging.error(
"In {0}:"
"Glossary entry \"{}\" must have at least two lines- "
"Glossary entry '{1}' must have at least two lines- "
"a term and a definition.".format(
glossary_keyword, self.filename))
return False
......@@ -442,7 +442,7 @@ class ReferencePageValidator(MarkdownValidator):
if not re.match("^: ", line):
logging.error(
"In {0}:"
"At glossary entry \"{}\" "
"At glossary entry '{1}' "
"First line of definition must "
"start with ': '.".format(
glossary_keyword, self.filename))
......@@ -451,7 +451,7 @@ class ReferencePageValidator(MarkdownValidator):
if not re.match("^ ", line):
logging.error(
"In {0}:"
"At glossary entry \"{}\" "
"At glossary entry '{1}' "
"Subsequent lines of definition must "
"start with ' '.".format(
glossary_keyword, self.filename))
......
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