Skip to content

Commit

Permalink
chore(manifest): Print more userfriendly error if manifest file to be…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
UnseenWizzard committed Jul 27, 2023
1 parent 14448fd commit a6b9a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manifest/manifest_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a6b9a41

Please sign in to comment.