RatAttack-cli: added error message for running VA as Admin

see #138

Writing to other users’ pipes will cause an exception. You should not run VA elevated.

Needs a warning in VA too.
This commit is contained in:
alterNERDtive 2022-05-29 10:51:51 +02:00
parent c9d39f6cc7
commit 751f80461f
3 changed files with 11 additions and 1 deletions

View file

@ -13,6 +13,12 @@
* `auto enter station services` option. (#142)
## RatAttack 6.3.1
* Added error message to the CLI tool for running VoiceAttack with elevated
privileges which will cause an `UnAuthorizedAccessException` trying to
communicate with the plugin. (#138)
## SpashAttack 7.2.2
* Fixed getting current jump range from EDDI; no longer fails on the first try,

View file

@ -32,6 +32,10 @@ namespace RatAttack
catch (TimeoutException)
{
Console.Error.WriteLine("Connection to RatAttack pipe has timed out.");
}
catch (UnauthorizedAccessException)
{
Console.Error.WriteLine("Cannot connect to RatAttack pipe. Are you running VoiceAttack as Admin?");
}
}
}

View file

@ -259,7 +259,7 @@ namespace RatAttack
| required VoiceAttack plugin shenanigans |
\========================================*/
static readonly Version VERSION = new Version("6.3");
static readonly Version VERSION = new Version("6.3.1");
public static Guid VA_Id()
=> new Guid("{F2ADF0AE-4837-4E4A-9C87-8A7E2FA63E5F}");