File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,12 @@ impl Scheduler {
125
125
let ( task, _) = scheduler. tasks
126
126
. write ( )
127
127
. pop_min ( )
128
- . unwrap_or_else ( || panic ! ( "Failed to get task" ) ) ;
128
+ . unwrap_or_else (
129
+ || {
130
+ info ! ( " [ Sch ] Scheduler Panicked! Failed to Get Task" ) ;
131
+ panic ! ( ) ;
132
+ }
133
+ ) ;
129
134
130
135
let inner_scheduler = scheduler. clone ( ) ;
131
136
@@ -201,9 +206,19 @@ impl Task {
201
206
)
202
207
. stdout ( Stdio :: piped ( ) )
203
208
. output ( )
204
- . unwrap_or_else ( |_| panic ! ( "FFMPEG Error" ) )
209
+ . unwrap_or_else (
210
+ |_| {
211
+ info ! ( " [ Tsk ] Task Panicked! FFMPEG Error" ) ;
212
+ panic ! ( ) ;
213
+ }
214
+ )
205
215
. stdout
206
- ) . unwrap_or_else ( |_| panic ! ( "Channel Error" ) ) ;
216
+ ) . unwrap_or_else (
217
+ |_| {
218
+ info ! ( " [ Tsk ] Task Panicked! Channel Error" ) ;
219
+ panic ! ( ) ;
220
+ }
221
+ ) ;
207
222
}
208
223
}
209
224
You can’t perform that action at this time.
0 commit comments