Nicer error message
This commit is contained in:
parent
35d3b63026
commit
a341f8b56f
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue