From 8c0819becaa18bf7c4db1f8fc2a8a8eaf52afa8b Mon Sep 17 00:00:00 2001 From: Andy Boughton Date: Fri, 19 Dec 2014 01:22:57 -0500 Subject: [PATCH] Minor changes to make error messages consistent, and possibly less crashy. Still need unit tests to trigger this code. --- tools/check | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/check b/tools/check index a571696..5ab6867 100755 --- a/tools/check +++ b/tools/check @@ -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)) -- GitLab