Skip to content

Commit 2450c32

Browse files
author
OpenShift Bot
authored
Merge pull request #11918 from mmilata/bz1393003-ns-error-msg
Merged by openshift-bot
2 parents 9a21f9b + b94313c commit 2450c32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/generate/app/templatelookup.go

+2
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ func (r *TemplateFileSearcher) Search(precise bool, terms ...string) (ComponentM
129129
switch {
130130
case strings.Contains(err.Error(), "does not exist") && strings.Contains(err.Error(), "the path"):
131131
continue
132+
case strings.Contains(err.Error(), "not a directory") && strings.Contains(err.Error(), "the path"):
133+
continue
132134
default:
133135
if syntaxErr, ok := err.(*json.SyntaxError); ok {
134136
err = fmt.Errorf("at offset %d: %v", syntaxErr.Offset, err)

0 commit comments

Comments
 (0)