From 0a570ca8318750f02039cfefb2d3a16d96457522 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 12 Apr 2014 14:37:27 +0200 Subject: Improve error messages --- commit-check | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commit-check b/commit-check index ae80804..cc3a9b8 100755 --- a/commit-check +++ b/commit-check @@ -124,13 +124,13 @@ while (<$commitfile>) { $lineno++; # Start at 1, so increment first if ($lineno == 1) { - err "Not capitalized" if /^[^[:upper:]]/; - err "Longer than 50 characters" if /^.{51,}/; + err "First line is not capitalized" if /^[^[:upper:]]/; + err "First line is longer than 50 characters" if /^.{51,}/; next; } - err "Should be empty" if $lineno == 2 && /.+/; - err "Longer than 72 characters" if /^.{73,}/; + err "Second line should be empty" if $lineno == 2 && /.+/; + err "Line is longer than 72 characters" if /^.{73,}/; } close $commitfile; -- cgit v1.2.3-54-g00ecf