Log:
cleanup of rsync output to make it more readable Ticket #113
Modified:
spine/branches/spine_2_2-devel/lib/Spine/Util.pm
Modified: spine/branches/spine_2_2-devel/lib/Spine/Util.pm
==============================================================================
--- spine/branches/spine_2_2-devel/lib/Spine/Util.pm Tue Mar 30 08:13:24 2010 (r311)
+++ spine/branches/spine_2_2-devel/lib/Spine/Util.pm Tue Mar 30 08:16:56 2010 (r312)
@@ -211,8 +211,11 @@
$args{Target}]);
unless ($? == 0) {
- $c->error("rsync failed from $args{Source} [".join("", @result)."]",
- "err");
+ $c->error("rsync failed from $args{Source} to $args{Target}", "err");
+ foreach (@result) {
+ chomp;
+ $c->error("rsync: $_", "err");
+ }
unlink($tmpfn);
return SPINE_FAILURE;
}