gcc-changelog: Improve error text for overlong ChangeLog lines
authorJonathan Wakely <jwakely@redhat.com>
Tue, 2 Jun 2020 10:18:21 +0000 (11:18 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 2 Jun 2020 10:18:21 +0000 (11:18 +0100)
This error is wrong, the line is what exceeds LINE_LIMIT characters, the
limit doesn't exceed itself.

contrib/ChangeLog:

* gcc-changelog/git_commit.py (GitCommit.parse_changelog): Fix
grammar.

contrib/gcc-changelog/git_commit.py

index 7fbc029408d0e81c83b7c3834926cfd463958034..b8c7f718c50a19f37cbac4314528a98d096c1678 100755 (executable)
@@ -346,7 +346,7 @@ class GitCommit:
             if line != line.rstrip():
                 self.errors.append(Error('trailing whitespace', line))
             if len(line.replace('\t', ' ' * TAB_WIDTH)) > LINE_LIMIT:
-                self.errors.append(Error('line limit exceeds %d characters'
+                self.errors.append(Error('line exceeds %d character limit'
                                          % LINE_LIMIT, line))
             m = changelog_regex.match(line)
             if m: