Skip to content

Commit 1cdaad3

Browse files
committed
return notfound errors w/o wrappering them
1 parent 7df6638 commit 1cdaad3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/build/generator/generator.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ func (g *BuildGenerator) Instantiate(ctx kapi.Context, request *buildapi.BuildRe
233233

234234
newBuild, err := g.generateBuildFromConfig(ctx, bc, request.Revision, request.Binary)
235235
if err != nil {
236+
if errors.IsNotFound(err) {
237+
return nil, err
238+
}
236239
return nil, errors.NewInternalError(err)
237240
}
238241

0 commit comments

Comments
 (0)