From 6c1e31e551bc5ef6222becbbcfd52f0d617dda4b Mon Sep 17 00:00:00 2001 From: Christoph Klaffl Date: Thu, 18 Apr 2024 08:22:37 +0200 Subject: [PATCH] handle error output for filtered replications --- syncoid | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syncoid b/syncoid index a1cf4166..b57aa43d 100755 --- a/syncoid +++ b/syncoid @@ -1012,7 +1012,11 @@ sub syncincremental { my $snapa = $intsnaps[$i]; my $snapb = $intsnaps[$i + 1]; 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