fix: Remove newline after push failure message

- Modified error output in push_changes() function to remove trailing newlines
- Keeps error messages more consistent with standard error formatting
- Improves log readability when capturing stderr output
This commit is contained in:
bobo.yang 2025-03-07 11:02:20 +08:00
parent c59cd3fcb8
commit 1f158fb047

View File

@ -393,7 +393,7 @@ def push_changes():
print("Push completed successfully.", end="\n\n", flush=True)
return True
except subprocess.CalledProcessError as e:
print(f"Push failed: {str(e)}", end="\n\n", file=sys.stderr, flush=True)
print(f"Push failed: {str(e)}", file=sys.stderr, flush=True)
return False
def main():