fix: Improve error message formatting for failed branch detection
- Enhanced error message display when current branch cannot be determined - Added newline characters for better readability in console output - Maintains consistent formatting with other status messages
This commit is contained in:
parent
b5aa4b22ac
commit
c59cd3fcb8
@ -385,7 +385,7 @@ def push_changes():
|
|||||||
try:
|
try:
|
||||||
current_branch = get_current_branch()
|
current_branch = get_current_branch()
|
||||||
if not 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
|
return False
|
||||||
|
|
||||||
print(f"Pushing changes to origin/{current_branch}...", end="\n\n", flush=True)
|
print(f"Pushing changes to origin/{current_branch}...", end="\n\n", flush=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user