From e82725b5808b2dbb1c0297053a54ac8bc9378170 Mon Sep 17 00:00:00 2001 From: Nick Fields <50085412+nick-invision@users.noreply.github.com> Date: Wed, 1 Sep 2021 16:00:19 -0400 Subject: [PATCH] Update error to say 'uninstall' not 'unconfigure' (#1179) * Update error to say 'uninstall' not 'unconfigure' * Say uninstall service in *nix config error msgs Co-authored-by: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com> --- .../Configuration/ConfigurationManager.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Runner.Listener/Configuration/ConfigurationManager.cs b/src/Runner.Listener/Configuration/ConfigurationManager.cs index e50101591..07880240b 100644 --- a/src/Runner.Listener/Configuration/ConfigurationManager.cs +++ b/src/Runner.Listener/Configuration/ConfigurationManager.cs @@ -347,12 +347,9 @@ namespace GitHub.Runner.Listener.Configuration _term.WriteLine(); _term.WriteSuccessMessage("Runner service removed"); -#elif OS_LINUX - // unconfig system D service first - throw new Exception("Unconfigure service first"); -#elif OS_OSX - // unconfig osx service first - throw new Exception("Unconfigure service first"); +#else + // unconfig systemd or osx service first + throw new Exception("Uninstall service first"); #endif }