Skip to content

Commit

Permalink
fix: videoProbeError handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray-D-Song committed Oct 5, 2023
1 parent bbd6c20 commit f82857f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moviego.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ func Load(fileName string) (Video, error) {
videoProbe, videoProbeError := ffmpeg.Probe(abs)

if videoProbeError != nil {
log.Printf("videoProbeError: %v", err)
panic(fmt.Errorf("fatal error: %w", err))
log.Printf("videoProbeError: %v", videoProbeError)
panic(fmt.Errorf("fatal error: %w", videoProbeError))
}

if absError != nil {
Expand Down

0 comments on commit f82857f

Please sign in to comment.