We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaff302 commit 95bf55dCopy full SHA for 95bf55d
src/git_scribe/commands/commit.py
@@ -94,8 +94,10 @@ def commit(ctx: typer.Context):
94
git_utils.commit(commit_msg, passthrough_args)
95
console.print("[bold green]Successfully committed.[/bold green]")
96
except Exception as e:
97
- # Print the error message safely by passing it as a separate argument
98
- console.print("[bold red]Failed to commit:[/bold red]", e)
+ from rich.markup import escape
+
99
+ error_message = escape(str(e))
100
+ console.print("[bold red]Failed to commit:[/bold red]", error_message)
101
raise typer.Exit(1)
102
break
103
elif action == "e":
0 commit comments