Skip to content

Commit

Permalink
Let PrintException add a space between prefix and exception
Browse files Browse the repository at this point in the history
There should always be a space, thus take that responsibility from the caller.
  • Loading branch information
Ecconia committed Mar 18, 2024
1 parent 16bffc4 commit 999c6ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICC/API/Frontend.cs
Expand Up @@ -83,7 +83,7 @@ public virtual void PrintException(Exception ex, string prefix = null)
{
WriteLineWithRegions(new (string Text, CColor Color)[]
{
(prefix, ConsoleColor.Red),
(prefix + " ", ConsoleColor.Red),
(ex.Message, ConsoleColor.DarkRed)
}
);
Expand Down
2 changes: 1 addition & 1 deletion LICC/Internal/Shell.cs
Expand Up @@ -156,7 +156,7 @@ void HandleException(Exception ex)
{
_LastException = ex;

LConsole.PrintException(ex, "An exception occurred while executing the command: ");
LConsole.PrintException(ex, "An exception occurred while executing the command:");
}
}

Expand Down

0 comments on commit 999c6ac

Please sign in to comment.