summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/part_export/textradius.pm4
1 files 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;