Skip to content

Commit

Permalink
Merge pull request #11 from Ray-D-Song/main
Browse files Browse the repository at this point in the history
fix: videoProbeError handle
  • Loading branch information
mowshon authored Apr 12, 2024
2 parents bbd6c20 + f82857f commit 12ea88f
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 12ea88f

Please sign in to comment.