Added output for invalid file types (#18)

* reordered ffmpeg params to fix issue #16

* added a message for invalid input file type
pull/22/head
Kaden5480 2021-04-21 18:43:55 +01:00 committed by GitHub
parent c4ed04b7e9
commit 6ab4d58f79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -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")
}
}