We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f93fb2 commit 0a7812aCopy full SHA for 0a7812a
kittens/choose_fonts/backend.go
@@ -65,6 +65,9 @@ func (k *kitty_font_backend_type) start() (err error) {
65
var kitty_font_backend kitty_font_backend_type
66
67
func (k *kitty_font_backend_type) send(v any) error {
68
+ if k.to == nil {
69
+ return fmt.Errorf("Trying to send data when to pipe is nil")
70
+ }
71
data, err := json.Marshal(v)
72
if err != nil {
73
return fmt.Errorf("Could not encode message to kitty with error: %w", err)
0 commit comments