mirror of https://github.com/jimsalterjrs/sanoid
Merge pull request #911 from phreaker0/fix-error-handling
handle error output for filtered replications
This commit is contained in:
commit
45b1ce9e5d
6
syncoid
6
syncoid
|
|
@ -1012,7 +1012,11 @@ sub syncincremental {
|
||||||
my $snapa = $intsnaps[$i];
|
my $snapa = $intsnaps[$i];
|
||||||
my $snapb = $intsnaps[$i + 1];
|
my $snapb = $intsnaps[$i + 1];
|
||||||
writelog('INFO', "Performing an incremental sync between '$snapa' and '$snapb'");
|
writelog('INFO', "Performing an incremental sync between '$snapa' and '$snapb'");
|
||||||
syncincremental($sourcehost, $sourcefs, $targethost, $targetfs, $snapa, $snapb, 1) == 0 or return $?;
|
(my $ret, my $stdout) = syncincremental($sourcehost, $sourcefs, $targethost, $targetfs, $snapa, $snapb, 1);
|
||||||
|
|
||||||
|
if ($ret != 0) {
|
||||||
|
return ($ret, $stdout);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Return after finishing the -i syncs so that we don't try to do another -I
|
# Return after finishing the -i syncs so that we don't try to do another -I
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue