From: Martyn Smith Date: Fri, 17 Mar 2006 00:33:19 +0000 (+1300) Subject: Added logged warnings for CVS error returns X-Git-Tag: v1.4.0-rc1~150^2^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=568907f52051f340dc29a907f67e69260d7d4e7a;p=git.git Added logged warnings for CVS error returns --- diff --git a/git-cvsserver.perl b/git-cvsserver.perl index ffd9c66f9..2e9b67337 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -950,6 +950,7 @@ sub req_ci if ( -e $state->{CVSROOT} . "/index" ) { + $log->warn("file 'index' already exists in the git repository"); print "error 1 Index already exists in git repo\n"; exit; } @@ -957,6 +958,7 @@ sub req_ci my $lockfile = "$state->{CVSROOT}/refs/heads/$state->{module}.lock"; unless ( sysopen(LOCKFILE,$lockfile,O_EXCL|O_CREAT|O_WRONLY) ) { + $log->warn("lockfile '$lockfile' already exists, please try again"); print "error 1 Lock file '$lockfile' already exists, please try again\n"; exit; }