We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6abaea2 commit 90c78f8Copy full SHA for 90c78f8
1 file changed
internal/output/table.go
@@ -25,7 +25,9 @@ func (p *TablePrinter) Print(data any, columns []Column) error {
25
for i, col := range columns {
26
headers[i] = col.Header
27
}
28
- fmt.Fprintln(tw, strings.Join(headers, "\t"))
+ if _, err := fmt.Fprintln(tw, strings.Join(headers, "\t")); err != nil {
29
+ return err
30
+ }
31
32
// Rows
33
for _, item := range items {
@@ -37,7 +39,9 @@ func (p *TablePrinter) Print(data any, columns []Column) error {
37
39
38
40
vals[i] = v
41
- fmt.Fprintln(tw, strings.Join(vals, "\t"))
42
+ if _, err := fmt.Fprintln(tw, strings.Join(vals, "\t")); err != nil {
43
44
45
46
47
return tw.Flush()
0 commit comments