Skip to content

Commit 972ebcd

Browse files
committed
Logging improvements
Closes #592
1 parent d8adf89 commit 972ebcd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

source/BulkCrapUninstaller/Forms/Windows/MainWindow.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ public MainWindow()
152152
.AppendIf(Program.EnableDebug, " ", Localisable.StrDebug);
153153
Text = MainTitleBarText;
154154

155+
Console.WriteLine(MainTitleBarText);
156+
155157
_styleController = new WindowStyleController(this);
156158

157159
// Initialize the status bar

source/BulkCrapUninstaller/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ internal static void PrepareSettings()
135135
}
136136
catch (Exception ex)
137137
{
138-
Console.WriteLine("Failed to load settings from the config file: " + ex);
138+
if(ex is FileNotFoundException)
139+
Console.WriteLine("Settings file not found, creating new one.");
140+
else
141+
Console.WriteLine("Failed to load settings from the config file: " + ex);
139142

140143
File.Delete(ConfigFileFullname);
141144
Settings.Default.Reload();

0 commit comments

Comments
 (0)