Added check for format

This commit is contained in:
マリウス 2020-10-16 01:02:12 +01:00
parent 75821110de
commit 0cb4de29d9
No known key found for this signature in database
GPG key ID: C228EF0A530AF06F

View file

@ -66,6 +66,9 @@ var importCmd = &cobra.Command{
fmt.Printf("%s %+v\n", CharError, err) fmt.Printf("%s %+v\n", CharError, err)
os.Exit(1) 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) sha1List, sha1Err := database.GetImportsSHA1List(user)