Skip to content

Commit fe48427

Browse files
committed
Log error for logon task
1 parent 9630516 commit fe48427

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Flow.Launcher/Helper/AutoStartup.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ private static bool CheckLogonTask()
5959

6060
return true;
6161
}
62-
catch (Exception)
62+
catch (Exception e)
6363
{
64-
Log.Error("AutoStartup", "Failed to check logon task");
64+
Log.Error("AutoStartup", $"Failed to check logon task: {e}");
6565
}
6666
}
6767

@@ -159,9 +159,9 @@ private static bool ScheduleLogonTask()
159159
TaskService.Instance.RootFolder.RegisterTaskDefinition(LogonTaskName, td);
160160
return true;
161161
}
162-
catch (Exception)
162+
catch (Exception e)
163163
{
164-
Log.Error("AutoStartup", "Failed to schedule logon task");
164+
Log.Error("AutoStartup", $"Failed to schedule logon task: {e}");
165165
return false;
166166
}
167167
}
@@ -174,9 +174,9 @@ private static bool UnscheduleLogonTask()
174174
taskService.RootFolder.DeleteTask(LogonTaskName);
175175
return true;
176176
}
177-
catch (Exception)
177+
catch (Exception e)
178178
{
179-
Log.Error("AutoStartup", "Failed to unschedule logon task");
179+
Log.Error("AutoStartup", $"Failed to unschedule logon task: {e}");
180180
return false;
181181
}
182182
}

0 commit comments

Comments
 (0)