File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ private static bool CheckLogonTask()
59
59
60
60
return true ;
61
61
}
62
- catch ( Exception )
62
+ catch ( Exception e )
63
63
{
64
- Log . Error ( "AutoStartup" , "Failed to check logon task" ) ;
64
+ Log . Error ( "AutoStartup" , $ "Failed to check logon task: { e } ") ;
65
65
}
66
66
}
67
67
@@ -159,9 +159,9 @@ private static bool ScheduleLogonTask()
159
159
TaskService . Instance . RootFolder . RegisterTaskDefinition ( LogonTaskName , td ) ;
160
160
return true ;
161
161
}
162
- catch ( Exception )
162
+ catch ( Exception e )
163
163
{
164
- Log . Error ( "AutoStartup" , "Failed to schedule logon task" ) ;
164
+ Log . Error ( "AutoStartup" , $ "Failed to schedule logon task: { e } ") ;
165
165
return false ;
166
166
}
167
167
}
@@ -174,9 +174,9 @@ private static bool UnscheduleLogonTask()
174
174
taskService . RootFolder . DeleteTask ( LogonTaskName ) ;
175
175
return true ;
176
176
}
177
- catch ( Exception )
177
+ catch ( Exception e )
178
178
{
179
- Log . Error ( "AutoStartup" , "Failed to unschedule logon task" ) ;
179
+ Log . Error ( "AutoStartup" , $ "Failed to unschedule logon task: { e } ") ;
180
180
return false ;
181
181
}
182
182
}
You can’t perform that action at this time.
0 commit comments