diff --git a/kittens/icat/main.go b/kittens/icat/main.go index 0617618c9..8eb55babe 100644 --- a/kittens/icat/main.go +++ b/kittens/icat/main.go @@ -151,7 +151,7 @@ func main(cmd *cli.Command, o *Options, args []string) (rc int, err error) { } else { t, oerr := tty.OpenControllingTerm() if oerr != nil { - return 1, fmt.Errorf("Failed to open controlling terminal with error: %w", err) + return 1, fmt.Errorf("Failed to open controlling terminal with error: %w", oerr) } screen_size, err = t.GetSize() }