From 7d1548c387383ad6bd59ebf6202b5a2613543262 Mon Sep 17 00:00:00 2001 From: James Harris <contact@jamesharris.id.au> Date: Tue, 20 Aug 2024 08:21:58 +1000 Subject: [PATCH] Return write error as-is. --- renderer.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/renderer.go b/renderer.go index 2b17f06..906b49e 100644 --- a/renderer.go +++ b/renderer.go @@ -44,10 +44,7 @@ func (r *renderer) Write(data []byte) (int, error) { if n > 0 { r.ProducedOutput = true } - if err != nil { - panic(panicSentinel{err}) - } - return n, nil + return n, err } func (r *renderer) Config() Config {