mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-12-04 08:41:48 +01:00
change console color for path command errors
This commit is contained in:
parent
4d15094dbe
commit
7ab250c03e
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue