From: Arthur Axel 'fREW' Schmidt Date: Wed, 13 Mar 2013 01:12:48 +0000 (-0500) Subject: clarify error X-Git-Tag: v0.001000~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4477708bbe375c7d19369152dc96213999271f54;p=p5sagit%2FDistar.git clarify error --- diff --git a/lib/Distar.pm b/lib/Distar.pm index df7fb8f..4d41b28 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -78,7 +78,7 @@ sub run_preflight { "%i-%02i-%02i", (localtime)[5]+1900, (localtime)[4]+1, (localtime)[3] ); my @cached = grep /^\+/, `git diff --cached -U0`; - @cached > 0 or die "Please add:\n\n$ARGV[0] - $ymd\n\nto Changes and git add"; + @cached > 0 or die "Please add:\n\n$ARGV[0] - $ymd\n\nto Changes stage Changes (git add Changes)"; @cached == 2 or die "Pre-commit Changes not just Changes line"; $cached[0] =~ /^\+\+\+ .\/Changes\n/ or die "Changes not changed"; $cached[1] eq "+$ARGV[0] - $ymd\n" or die "Changes new line should be: \n\n$ARGV[0] - $ymd\n ";