From 0cb4de29d98f7cc75adc2f7beb318cc3bbda5980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Fri, 16 Oct 2020 01:02:12 +0100 Subject: [PATCH] Added check for format --- z/import.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/z/import.go b/z/import.go index 9a3a030..61f342c 100644 --- a/z/import.go +++ b/z/import.go @@ -66,6 +66,9 @@ var importCmd = &cobra.Command{ fmt.Printf("%s %+v\n", CharError, err) os.Exit(1) } + } else { + fmt.Printf("%s specify an import format; see `zeit import --help` for more info\n", CharError) + os.Exit(1) } sha1List, sha1Err := database.GetImportsSHA1List(user)