From b249166238a9f66610c1a2b0d02b555e8c412770 Mon Sep 17 00:00:00 2001 From: Kaden5480 Date: Wed, 21 Apr 2021 18:27:24 +0100 Subject: [PATCH] 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 42e20df..9fb910e 100644 --- a/exploits.go +++ b/exploits.go @@ -189,9 +189,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") + + } }