Apply suggestions from code review

Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
pull/30571/head
Yarden Shoham 7 months ago committed by GitHub
parent f475f3e1fd
commit ab926212d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -67,7 +67,7 @@ func (p *execRender) Run(renderedManifests *bytes.Buffer) (*bytes.Buffer, error)
// If the binary returned almost nothing, it's likely that it didn't
// successfully render anything
if len(bytes.TrimSpace(postRendered.Bytes())) == 0 {
return nil, errors.Errorf("post render binary %s did not produce any output %s", p.binaryPath, postRendered.String())
return nil, errors.Errorf("post-renderer %q produced empty output", p.binaryPath)
}
return postRendered, nil

Loading…
Cancel
Save