Skip to content

Commit f82857f

Browse files
committed
fix: videoProbeError handle
1 parent bbd6c20 commit f82857f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

moviego.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ func Load(fileName string) (Video, error) {
318318
videoProbe, videoProbeError := ffmpeg.Probe(abs)
319319

320320
if videoProbeError != nil {
321-
log.Printf("videoProbeError: %v", err)
322-
panic(fmt.Errorf("fatal error: %w", err))
321+
log.Printf("videoProbeError: %v", videoProbeError)
322+
panic(fmt.Errorf("fatal error: %w", videoProbeError))
323323
}
324324

325325
if absError != nil {

0 commit comments

Comments
 (0)