aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-06-02 11:18:21 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-06-02 11:18:21 +0100
commit6fb93242cbf9b8bd8595472790303d1930e227d9 (patch)
tree4ecd1cea386e74179fcb8513b0be7aa715888c95 /contrib
parent9127b5239871fb1e16f26abb17081599b38a4d53 (diff)
downloadgcc-6fb93242cbf9b8bd8595472790303d1930e227d9.zip
gcc-6fb93242cbf9b8bd8595472790303d1930e227d9.tar.gz
gcc-6fb93242cbf9b8bd8595472790303d1930e227d9.tar.bz2
gcc-changelog: Improve error text for overlong ChangeLog lines
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.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/gcc-changelog/git_commit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py
index 7fbc029..b8c7f71 100755
--- a/contrib/gcc-changelog/git_commit.py
+++ b/contrib/gcc-changelog/git_commit.py
@@ -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: