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

pull/9521/head
Rohit Bhati 2026-01-14 12:32:12 +05:30 committed by GitHub
parent 402ddafa2a
commit 90be555ec8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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])