Skip to content

Commit

Permalink
auto close app (no wait) if no errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiye committed Mar 2, 2024
1 parent 50cb56a commit 47f06c6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ internal class Program {
WriteLine("Finished", ConsoleColor.DarkCyan);
}
catch (Exception ex) {
Console.SetCursorPosition(0, consoleTop + 3);
WriteLine(ex.Message, ConsoleColor.Red);
errors["internal"] = ex;
}

Console.CursorVisible = true;
Expand All @@ -171,10 +170,9 @@ internal class Program {
Write($" - Error loading {p.Key}: ", ConsoleColor.Red);
WriteLine($"{p.Value.Message}", ConsoleColor.Yellow);
}
WriteLine("Press 'Enter' to exit...");
Console.ReadLine();
}

WriteLine("Press 'Enter' to exit...");
Console.ReadLine();
}

private static void ShowProgress(int count, int done, int failed, string title) {
Expand Down

0 comments on commit 47f06c6

Please sign in to comment.