From f679c9d1fe45643923879782e59218278474f805 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 9 Nov 2020 16:56:31 -0800 Subject: [PATCH] Do not continue if ffmpeg is not found. panic and die. --- config/defaults.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/defaults.go b/config/defaults.go index 81e408440..a10b4bd00 100644 --- a/config/defaults.go +++ b/config/defaults.go @@ -3,8 +3,6 @@ package config import ( "os/exec" "strings" - - log "github.com/sirupsen/logrus" ) func getDefaults() config { @@ -40,7 +38,7 @@ func getDefaultFFMpegPath() string { cmd := exec.Command("which", "ffmpeg") out, err := cmd.CombinedOutput() if err != nil { - log.Debugln("Unable to determine path to ffmpeg. Please specify it in the config file.") + panic("Unable to determine path to ffmpeg. Please specify it in the config file.") } path := strings.TrimSpace(string(out))