diff --git a/tools/tui/graphics/command.go b/tools/tui/graphics/command.go index 82ee0259b..c502318a3 100644 --- a/tools/tui/graphics/command.go +++ b/tools/tui/graphics/command.go @@ -566,6 +566,9 @@ func (self *GraphicsCommand) WriteWithPayloadTo(o io.StringWriter, payload []byt gc.m = GRT_more_nomore } err = gc.serialize_to(o, chunk) + if err != nil { + return err + } if !is_first { gc = GraphicsCommand{} }