removing exception dep, saving blank canvas on checkRanges err
This commit is contained in:
parent
a3605addc2
commit
d88ba0ead3
3 changed files with 6 additions and 5 deletions
2
chart.go
2
chart.go
|
|
@ -97,6 +97,8 @@ func (c Chart) Render(rp RendererProvider, w io.Writer) error {
|
|||
|
||||
err = c.checkRanges(xr, yr, yra)
|
||||
if err != nil {
|
||||
// (try to) dump the raw background to the stream.
|
||||
r.Save(w)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue