Apply suggestions from code review

Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
This commit is contained in:
Yarden Shoham
2025-02-24 07:26:12 +02:00
committed by GitHub
parent f475f3e1fd
commit ab926212d9

View File

@@ -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