Skip to content

Commit

Permalink
Return write error as-is.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Aug 19, 2024
1 parent 013e1f4 commit 7d1548c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7d1548c

Please sign in to comment.