Fix cli create archive with nonexistent file (#1036)

CLI should return an error if user specifies a file that does not exist
This commit is contained in:
Ta-Ching Chen
2018-12-27 11:06:39 +05:30
committed by Vishal
parent f9f5fe436a
commit 04e6433d5d
2 changed files with 27 additions and 2 deletions
-2
View File
@@ -272,8 +272,6 @@ func fnCreate(c *cli.Context) error {
// create new package in the same namespace as the function.
pkgMetadata = createPackage(client, fnNamespace, envName, envNamespace, srcArchiveFiles, deployArchiveFiles, buildcmd, specDir, specFile, noZip)
fmt.Printf("package '%v' created\n", pkgMetadata.Name)
}
var secrets []fission.SecretReference