diff --git a/cli/src/core/git.py b/cli/src/core/git.py index 98df4df..0c512a6 100644 --- a/cli/src/core/git.py +++ b/cli/src/core/git.py @@ -64,8 +64,9 @@ def git_push_changes( repo.index.reset(paths=files_to_stage) logger.info("Staging area successfully reset to clean state.") - error_reason = e.stderr.strip() if e.stderr else "Unknown remote error" - raise RuntimeError(f"Failed to push to git due to: {error_reason}, {e.stdout}, {e.status}") + raise RuntimeError( + f"Failed to push to git due to: {e}. Does the branch already exist in Gitea?" + ) logger.info("Successfully pushed!")