From a6b9a41f12d69f13d24eb7a2dc12384d0e652fa0 Mon Sep 17 00:00:00 2001 From: UnseenWizzard Date: Wed, 26 Jul 2023 16:15:01 +0200 Subject: [PATCH] chore(manifest): Print more userfriendly error if manifest file to be loaded does not exist It's pretty unlikely that a manifest.yaml a user pointed a command to is actually a folder, and much more likely that the file doesn't exist. --- pkg/manifest/manifest_loader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/manifest/manifest_loader.go b/pkg/manifest/manifest_loader.go index 23467a403..f48862c32 100644 --- a/pkg/manifest/manifest_loader.go +++ b/pkg/manifest/manifest_loader.go @@ -259,7 +259,7 @@ func readManifestYAML(context *LoaderContext) (manifest, error) { if exists, err := files.DoesFileExist(context.Fs, manifestPath); err != nil { return manifest{}, err } else if !exists { - return manifest{}, newManifestLoaderError(context.ManifestPath, "specified manifest file is either no file or does not exist") + return manifest{}, newManifestLoaderError(context.ManifestPath, "manifest file does not exist") } rawData, err := afero.ReadFile(context.Fs, manifestPath)