Nicer error message

This commit is contained in:
Kovid Goyal
2025-07-09 11:48:40 +05:30
parent 35d3b63026
commit a341f8b56f

View File

@@ -83,7 +83,7 @@ func (g *graphics_manager) display_image(slot int, path string, img_width, img_h
func (g *graphics_manager) on_response(gc *graphics.GraphicsCommand) (err error) {
if gc.ResponseMessage() != "OK" {
return fmt.Errorf("Failed to load image with error: %s", gc.ResponseMessage())
return fmt.Errorf("Failed to load image with error: %s\n\nNote that the choose-fonts kitten does not work over SSH as it is meant to select a locally available font to use in kitty.", gc.ResponseMessage())
}
for _, img := range g.images {
if img.image_number == gc.ImageNumber() {