Fix pg_restore logs to distinguish UI sync issues from actual failures. #9074

This commit is contained in:
Rohit Bhati
2026-01-14 12:32:12 +05:30
committed by GitHub
parent 402ddafa2a
commit 90be555ec8
+1 -1
View File
@@ -630,7 +630,7 @@ class BatchProcess:
}
# Get the error message based on exit code.
if err_completed and self.ecode != 0:
if err_completed and self.ecode != 0 and self.ecode is not None:
err_msg = get_error_msg(self.cmd, self.ecode)
# This should be the last line as added 'Z' for sorting.
stderr.append(['Z', err_msg])