From e0d4d2d9891bca55b880986600681b7d44ab85cb Mon Sep 17 00:00:00 2001 From: Simon Kellet Date: Wed, 22 Jan 2025 19:19:00 +0000 Subject: [PATCH] error handling for zero bytes --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index c58d8ad..9841d24 100644 --- a/main.go +++ b/main.go @@ -58,6 +58,9 @@ func main() { makeOutputDir() defer clearOutputDir() - generateGlitchedSequence(sourceFile, fileExt, numCopies, shitSize, iterations, int32(chanceToRandom)) + err = generateGlitchedSequence(sourceFile, fileExt, numCopies, shitSize, iterations, int32(chanceToRandom)) + if err != nil { + return + } ffmpegGenerateMP4(fileExt) }