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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user