[vhffs-dev] [854] fixed error handling |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 854
Author: gradator
Date: 2007-09-01 12:28:54 +0000 (Sat, 01 Sep 2007)
Log Message:
-----------
fixed error handling
Modified Paths:
--------------
trunk/vhffs-robots/src/group_create.pl
Modified: trunk/vhffs-robots/src/group_create.pl
===================================================================
--- trunk/vhffs-robots/src/group_create.pl 2007-09-01 01:51:58 UTC (rev 853)
+++ trunk/vhffs-robots/src/group_create.pl 2007-09-01 12:28:54 UTC (rev 854)
@@ -47,13 +47,14 @@
foreach $group ( @{$groups} )
{
- if( Vhffs::Robots::Group::create_groupdir( $vhffs , $group ) < 0 )
+ if( defined Vhffs::Robots::Group::create_groupdir( $vhffs , $group ) )
{
- Vhffs::Robots::vhffs_log( sprintf( "cannot create group %s " , $group->get_groupname ) , $vhffs);
+ Vhffs::Robots::vhffs_log( sprintf( "create group %s " , $group->get_groupname ) , $vhffs);
}
else
{
- Vhffs::Robots::vhffs_log( sprintf( "create group %s " , $group->get_groupname ) , $vhffs);
+ Vhffs::Robots::vhffs_log( sprintf( "cannot create group %s " , $group->get_groupname ) , $vhffs);
+ print sprintf("robots::group_create: Cannot create group %s\n" , $group->get_groupname );
}
}