diff options
author | ivan <ivan> | 2002-07-02 07:13:28 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-07-02 07:13:28 +0000 |
commit | 6dcf9258234427eb6cd6ad3e9912c4f1dac91ceb (patch) | |
tree | 8c7a7e48d491851034b2fe14582759dc4d659ccd /FS/FS/part_export/textradius.pm | |
parent | b57dbad22a76abc65dc73745990dca5e8bfe9411 (diff) |
better error reporting from rsync
Diffstat (limited to 'FS/FS/part_export/textradius.pm')
-rw-r--r-- | FS/FS/part_export/textradius.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/part_export/textradius.pm b/FS/FS/part_export/textradius.pm index de0158b..7480787 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; |