Handle renderer errors

This commit is contained in:
Christian Muehlhaeuser
2019-11-26 03:58:33 +01:00
parent 8f083a1043
commit f47f525238
3 changed files with 22 additions and 7 deletions
+2 -2
View File
@@ -67,6 +67,6 @@ func (e *BaseElement) Render(w io.Writer, node *bf.Node, tr *TermRenderer) error
out = out.Blink()
}
w.Write([]byte(aurora.Sprintf("%s", out)))
return nil
_, err := w.Write([]byte(aurora.Sprintf("%s", out)))
return err
}