diff --git a/cmd/properties.go b/cmd/properties.go index 6b03048..472a9e3 100644 --- a/cmd/properties.go +++ b/cmd/properties.go @@ -1,8 +1,9 @@ package cmd import ( - "errors" + "os" "fmt" + "errors" "reflect" "strconv" "strings" @@ -20,7 +21,7 @@ func GetJailProperties(args []string) { jail, err = getJailFromArray(a, []string{""}, gJails) if err != nil { fmt.Printf("Error: %s\n", err.Error()) - return + os.Exit(1) } } else { props = append(props, a)