From 6dcf9258234427eb6cd6ad3e9912c4f1dac91ceb Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 2 Jul 2002 07:13:28 +0000 Subject: [PATCH] better error reporting from rsync --- FS/FS/part_export/textradius.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FS/FS/part_export/textradius.pm b/FS/FS/part_export/textradius.pm index de0158b50..74807878b 100644 --- a/FS/FS/part_export/textradius.pm +++ b/FS/FS/part_export/textradius.pm @@ -126,7 +126,7 @@ sub textradius_download { $rsync->exec( { src => "$user\@$host:$users", dest => $dest, - } ); + } ) or die "error downloading $user\@$host:$users : ". $rsync->err; $dest; } @@ -145,7 +145,7 @@ sub textradius_upload { $rsync->exec( { src => "$dir/users", dest => "$user\@$host:$users", - } ); + } ) or die "error uploading to $user\@$host:$users : ". $rsync->err; flock(LOCK,LOCK_UN); close LOCK; -- 2.11.0