mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-17 16:34:44 -05:00
Fix pg_restore logs to distinguish UI sync issues from actual failures. #9074
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user