Skip to content

Commit

Permalink
Logging improvements
Browse files Browse the repository at this point in the history
Closes #592
  • Loading branch information
Klocman committed Nov 13, 2024
1 parent d8adf89 commit 972ebcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions source/BulkCrapUninstaller/Forms/Windows/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ public MainWindow()
.AppendIf(Program.EnableDebug, " ", Localisable.StrDebug);
Text = MainTitleBarText;

Console.WriteLine(MainTitleBarText);

_styleController = new WindowStyleController(this);

// Initialize the status bar
Expand Down
5 changes: 4 additions & 1 deletion source/BulkCrapUninstaller/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ internal static void PrepareSettings()
}
catch (Exception ex)
{
Console.WriteLine("Failed to load settings from the config file: " + ex);
if(ex is FileNotFoundException)
Console.WriteLine("Settings file not found, creating new one.");
else
Console.WriteLine("Failed to load settings from the config file: " + ex);

File.Delete(ConfigFileFullname);
Settings.Default.Reload();
Expand Down

0 comments on commit 972ebcd

Please sign in to comment.