[vhffs-dev] [2054] Added File::Path errors messages to vhffs.log |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 2054
Author: gradator
Date: 2012-02-25 15:57:09 +0100 (Sat, 25 Feb 2012)
Log Message:
-----------
Added File::Path errors messages to vhffs.log
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Robots/Bazaar.pm
trunk/vhffs-api/src/Vhffs/Robots/Cvs.pm
trunk/vhffs-api/src/Vhffs/Robots/Git.pm
trunk/vhffs-api/src/Vhffs/Robots/Mercurial.pm
trunk/vhffs-api/src/Vhffs/Robots/Svn.pm
trunk/vhffs-api/src/Vhffs/Robots/Web.pm
Modified: trunk/vhffs-api/src/Vhffs/Robots/Bazaar.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Bazaar.pm 2012-02-25 12:57:56 UTC (rev 2053)
+++ trunk/vhffs-api/src/Vhffs/Robots/Bazaar.pm 2012-02-25 14:57:09 UTC (rev 2054)
@@ -60,7 +60,7 @@
if(@$errors) {
$bazaar->set_status( Vhffs::Constants::CREATION_ERROR );
$bazaar->commit;
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating bazaar repository '.$bazaar->get_reponame.' to the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating bazaar repository '.$bazaar->get_reponame.' to the filesystem: '.join(', ', @$errors) );
return undef;
}
@@ -109,7 +109,7 @@
if(@$errors) {
$bazaar->set_status( Vhffs::Constants::DELETION_ERROR );
$bazaar->commit;
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while removing bazaar repository '.$bazaar->get_reponame.' from the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while removing bazaar repository '.$bazaar->get_reponame.' from the filesystem: '.join(', ', @$errors) );
return undef;
}
Modified: trunk/vhffs-api/src/Vhffs/Robots/Cvs.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Cvs.pm 2012-02-25 12:57:56 UTC (rev 2053)
+++ trunk/vhffs-api/src/Vhffs/Robots/Cvs.pm 2012-02-25 14:57:09 UTC (rev 2054)
@@ -60,7 +60,7 @@
if(@$errors) {
$cvs->set_status( Vhffs::Constants::CREATION_ERROR );
$cvs->commit;
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating cvs repository '.$cvs->get_reponame.' to the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating cvs repository '.$cvs->get_reponame.' to the filesystem: '.join(', ', @$errors) );
return undef;
}
@@ -105,7 +105,7 @@
if(@$errors) {
$cvs->set_status( Vhffs::Constants::DELETION_ERROR );
$cvs->commit;
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while removing cvs repository '.$cvs->get_reponame.' from the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while removing cvs repository '.$cvs->get_reponame.' from the filesystem: '.join(', ', @$errors) );
return undef;
}
Modified: trunk/vhffs-api/src/Vhffs/Robots/Git.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Git.pm 2012-02-25 12:57:56 UTC (rev 2053)
+++ trunk/vhffs-api/src/Vhffs/Robots/Git.pm 2012-02-25 14:57:09 UTC (rev 2054)
@@ -62,7 +62,7 @@
if(@$errors) {
$git->set_status( Vhffs::Constants::CREATION_ERROR );
$git->commit;
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating git repository '.$git->get_reponame.' to the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating git repository '.$git->get_reponame.' to the filesystem: '.join(', ', @$errors) );
return undef;
}
@@ -115,7 +115,7 @@
if(@$errors) {
$git->set_status( Vhffs::Constants::DELETION_ERROR );
$git->commit;
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while removing git repository '.$git->get_reponame.' from the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while removing git repository '.$git->get_reponame.' from the filesystem: '.join(', ', @$errors) );
return undef;
}
Modified: trunk/vhffs-api/src/Vhffs/Robots/Mercurial.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Mercurial.pm 2012-02-25 12:57:56 UTC (rev 2053)
+++ trunk/vhffs-api/src/Vhffs/Robots/Mercurial.pm 2012-02-25 14:57:09 UTC (rev 2054)
@@ -60,7 +60,7 @@
if(@$errors) {
$mercurial->set_status( Vhffs::Constants::CREATION_ERROR );
$mercurial->commit;
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating mercurial repository '.$mercurial->get_reponame.' to the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating mercurial repository '.$mercurial->get_reponame.' to the filesystem: '.join(', ', @$errors) );
return undef;
}
@@ -109,7 +109,7 @@
if(@$errors) {
$mercurial->set_status( Vhffs::Constants::DELETION_ERROR );
$mercurial->commit;
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while removing mercurial repository '.$mercurial->get_reponame.' from the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while removing mercurial repository '.$mercurial->get_reponame.' from the filesystem: '.join(', ', @$errors) );
return undef;
}
Modified: trunk/vhffs-api/src/Vhffs/Robots/Svn.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Svn.pm 2012-02-25 12:57:56 UTC (rev 2053)
+++ trunk/vhffs-api/src/Vhffs/Robots/Svn.pm 2012-02-25 14:57:09 UTC (rev 2054)
@@ -60,7 +60,7 @@
if(@$errors) {
$svn->set_status( Vhffs::Constants::CREATION_ERROR );
$svn->commit;
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating svn repository '.$svn->get_reponame.' to the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating svn repository '.$svn->get_reponame.' to the filesystem: '.join(', ', @$errors) );
return undef;
}
@@ -109,7 +109,7 @@
if(@$errors) {
$svn->set_status( Vhffs::Constants::DELETION_ERROR );
$svn->commit;
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while removing svn repository '.$svn->get_reponame.' from the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while removing svn repository '.$svn->get_reponame.' from the filesystem: '.join(', ', @$errors) );
return undef;
}
Modified: trunk/vhffs-api/src/Vhffs/Robots/Web.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Web.pm 2012-02-25 12:57:56 UTC (rev 2053)
+++ trunk/vhffs-api/src/Vhffs/Robots/Web.pm 2012-02-25 14:57:09 UTC (rev 2054)
@@ -51,7 +51,7 @@
if( -e $dir ) {
$web->set_status( Vhffs::Constants::CREATION_ERROR );
$web->commit();
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating web repository '.$web->get_servername.' to the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating web area '.$web->get_servername.' to the filesystem' );
return undef;
}
@@ -61,7 +61,7 @@
if(@$errors) {
$web->set_status( Vhffs::Constants::CREATION_ERROR );
$web->commit;
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating web repository '.$web->get_servername.' to the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while creating web area '.$web->get_servername.' to the filesystem: '.join(', ', @$errors) );
return undef;
}
@@ -107,12 +107,12 @@
if(@$errors) {
$web->set_status( Vhffs::Constants::DELETION_ERROR );
$web->commit;
- Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while removing web area '.$web->get_servername.' from the filesystem' );
+ Vhffs::Robots::vhffs_log( $vhffs, 'An error occured while removing web area '.$web->get_servername.' from the filesystem: '.join(', ', @$errors) );
return undef;
}
if( $web->delete ) {
- Vhffs::Robots::vhffs_log( $vhffs, 'Deleted web repository '.$web->get_servername );
+ Vhffs::Robots::vhffs_log( $vhffs, 'Deleted web area '.$web->get_servername );
} else {
$web->set_status( Vhffs::Constants::DELETION_ERROR );
$web->commit;