@matheusbsbs / matheus-bagliano / commits / 568907f520
Fork 0

Added logged warnings for CVS error returns

Martyn Smith committed Mar 17, 2006 at 13:33 UTC 568907f52051f340dc29a907f67e69260d7d4e7a
1 file changed +2
git-cvsserver.perl
+2
@@ -950,6 +950,7 @@ sub req_ci
950
951 if ( -e $state->{CVSROOT} . "/index" )
952 {
953 + $log->warn("file 'index' already exists in the git repository");
954 print "error 1 Index already exists in git repo\n";
955 exit;
956 }
@@ -957,6 +958,7 @@ sub req_ci
958 my $lockfile = "$state->{CVSROOT}/refs/heads/$state->{module}.lock";
959 unless ( sysopen(LOCKFILE,$lockfile,O_EXCL|O_CREAT|O_WRONLY) )
960 {
961 + $log->warn("lockfile '$lockfile' already exists, please try again");
962 print "error 1 Lock file '$lockfile' already exists, please try again\n";
963 exit;
964 }