Skip to content

Commit ba29502

Browse files
committed
Default to output directly to terminal if pager output fails
1 parent 0b621e4 commit ba29502

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/pkg/print/print.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ func (p *Printer) PagerDisplay(content string) error {
169169

170170
err := lessCmd.Run()
171171
if err != nil {
172-
return fmt.Errorf("run less command: %w", err)
172+
p.Debug(ErrorLevel, "run less command: %v", err)
173+
p.Outputln(content)
173174
}
174175
return nil
175176
}

0 commit comments

Comments
 (0)