mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Show proper error message in diff when failing to load image
This commit is contained in:
parent
5b199b28c3
commit
5e6d020275
2 changed files with 4 additions and 1 deletions
|
|
@ -362,7 +362,7 @@ func image_lines(left_path, right_path string, screen_size screen_size, margin_s
|
|||
if errors.Is(err, graphics.ErrNotFound) {
|
||||
return splitlines("Loading image...", available_cols)
|
||||
}
|
||||
return splitlines(fmt.Sprintf("Failed to load image: %s", err), available_cols)
|
||||
return splitlines(fmt.Sprintf("%s", err), available_cols)
|
||||
}
|
||||
left_lines := do_side(left_path)
|
||||
if ll.left_image.count = len(left_lines); ll.left_image.count > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue