Skip to content

Commit

Permalink
Merge pull request #11918 from mmilata/bz1393003-ns-error-msg
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Nov 17, 2016
2 parents 9a21f9b + b94313c commit 2450c32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/generate/app/templatelookup.go
Expand Up @@ -129,6 +129,8 @@ func (r *TemplateFileSearcher) Search(precise bool, terms ...string) (ComponentM
switch {
case strings.Contains(err.Error(), "does not exist") && strings.Contains(err.Error(), "the path"):
continue
case strings.Contains(err.Error(), "not a directory") && strings.Contains(err.Error(), "the path"):
continue
default:
if syntaxErr, ok := err.(*json.SyntaxError); ok {
err = fmt.Errorf("at offset %d: %v", syntaxErr.Offset, err)
Expand Down

0 comments on commit 2450c32

Please sign in to comment.