Fix replication error log formatting

This commit is contained in:
2026-01-29 11:46:39 +13:00
parent a047a562fb
commit e7a118f661

View File

@@ -262,7 +262,7 @@ function Invoke-Replication {
Invoke-Command -ComputerName $server -ScriptBlock { param($c) & $env:ComSpec /c $c } -ArgumentList $remoteCmd | Invoke-Command -ComputerName $server -ScriptBlock { param($c) & $env:ComSpec /c $c } -ArgumentList $remoteCmd |
ForEach-Object { & $Log $_ } ForEach-Object { & $Log $_ }
} catch { } catch {
& $Log "Replication error on $server: $($_.Exception.Message)" & $Log ("Replication error on {0}: {1}" -f $server, $_.Exception.Message)
} }
continue continue
} }