From 6ab4d58f79b6e99e82456ef4e470660f46249d74 Mon Sep 17 00:00:00 2001 From: Kaden5480 Date: Wed, 21 Apr 2021 18:43:55 +0100 Subject: [PATCH] Added output for invalid file types (#18) * reordered ffmpeg params to fix issue #16 * added a message for invalid input file type --- exploits.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/exploits.go b/exploits.go index 5d4f8a6..209f746 100644 --- a/exploits.go +++ b/exploits.go @@ -187,9 +187,11 @@ func initCommand(inputFile string, mode string) { fmt.Println("completed task.") os.Remove(out) + } else if inputFile == "no input file provided" { + return + } else { - if inputFile == "no input file provided" { - return - } - } + fmt.Println("incompatible input file") + + } }