From e591361e698b50c7733f56bf26442fdc5c38b863 Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Fri, 7 Mar 2025 11:10:38 +0800 Subject: [PATCH] style: Improve error message formatting for failed push - Enhanced error output for branch determination failure by adding double newline for better readability in terminal output --- merico/github/commit/commit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/merico/github/commit/commit.py b/merico/github/commit/commit.py index ec3148f..81a77c5 100644 --- a/merico/github/commit/commit.py +++ b/merico/github/commit/commit.py @@ -385,7 +385,7 @@ def push_changes(): try: current_branch = get_current_branch() if not current_branch: - print("Could not determine current branch. Push failed.", file=sys.stderr, flush=True) + print("Could not determine current branch. Push failed.", end="\n\n", file=sys.stderr, flush=True) return False print(f"Pushing changes to origin/{current_branch}...", end="\n\n", flush=True)