Skip to content

Commit a0a306d

Browse files
review comments, moving string loc.
1 parent 2f635fc commit a0a306d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Agent.Listener/Agent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public async Task<int> ExecuteCommand(CommandLineParser parser)
103103

104104
if (parser.IsCommand("run") && !configManager.IsConfigured())
105105
{
106-
throw new InvalidOperationException("Cannot run. Must configure first.");
106+
throw new InvalidOperationException("CanNotRunAgent");
107107
}
108108

109109
Trace.Info("Done evaluating commands");

src/Misc/layoutbin/en-US/strings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"CanNotFindSystemd": "Can not find if systemd is installed",
2828
"CanNotGrantPermission": "Can not grant LogonAsService permission to the user {0}",
2929
"CanNotInstallService": "Can not install the service, check the logs for more details ",
30+
"CanNotRunAgent": "Cannot run. Must configure first",
3031
"CanNotSetPermissionForAccount": "Can not set permission for service account, check the logs for more details",
3132
"CanNotStartService": "Can not start the service, check the logs for more details",
3233
"CanNotStopService": "Can not stop the service {0} in a timely fashion, please stop the service and reconfigure again",

0 commit comments

Comments
 (0)