Skip to content

Commit

Permalink
Ask for keypress after error and update the first prompt to choose a …
Browse files Browse the repository at this point in the history
…menu item
  • Loading branch information
nul800sebastiaan committed Mar 18, 2017
1 parent 789a6d0 commit 088e611
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion letsencrypt-win-simple/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private static void Main(string[] args)
{
Console.WriteLine(" A: Get certificates for all hosts");
Console.WriteLine(" Q: Quit");
Console.Write("Which host do you want to get a certificate for: ");
Console.Write("Choose from one of the menu options above: ");
var command = ReadCommandFromConsole();
switch (command)
{
Expand Down Expand Up @@ -170,6 +170,12 @@ private static void Main(string[] args)
var acmeWebException = e as AcmeClient.AcmeWebException;
if (acmeWebException != null)
Log.Error("ACME Server Returned: {acmeWebExceptionMessage} - Response: {acmeWebExceptionResponse}", acmeWebException.Message, acmeWebException.Response.ContentAsString);

if (string.IsNullOrWhiteSpace(Options.Plugin))
{
Console.WriteLine("Press enter to continue.");
Console.ReadLine();
}
}

if (string.IsNullOrWhiteSpace(Options.Plugin) && Options.Renew)
Expand All @@ -179,6 +185,7 @@ private static void Main(string[] args)
retry = true;
}
} while (retry);

}

private static bool TryParseOptions(string[] args)
Expand Down

0 comments on commit 088e611

Please sign in to comment.