From 7f04d6a5de5018dedc94379af1b7112b54b0561c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 12 Apr 2014 15:11:24 +0200 Subject: Change error messages They now follow the gnu coding standards on Formatting Error Messages, found here: https://www.gnu.org/prep/standards/html_node/Errors.html --- commit-check | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commit-check b/commit-check index cc3a9b8..cfdc0bf 100755 --- a/commit-check +++ b/commit-check @@ -88,6 +88,7 @@ encountered also prints a message to the standard error stream. use strict; use warnings; +use File::Basename; use Getopt::Std; my $lineno = 0; @@ -97,7 +98,7 @@ my %arguments = (); sub err { my ($msg) = @_; - print STDERR "Error on line $lineno (actual line $.): ". $msg ."\n"; + print STDERR basename($0) .":". $ARGV[0] .":$.: ". $msg ."\n"; $status = 1; } -- cgit v1.2.3-54-g00ecf