diff --git a/Commands.Win32.cs b/Commands.Win32.cs index 46f2596..1b951b8 100644 --- a/Commands.Win32.cs +++ b/Commands.Win32.cs @@ -37,11 +37,15 @@ internal static partial class Commands { environmentKey.SetValue("Path", String.Join(";", paths), RegistryValueKind.ExpandString); return 0; } + Console.ForegroundColor = ConsoleColor.Red; Console.Error.WriteLine("Invalid Path Command"); + Console.ResetColor(); return 1; } catch (Exception exception) { + Console.ForegroundColor = ConsoleColor.Red; Console.Error.WriteLine(exception.Message); + Console.ResetColor(); return -1; } }