mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-09 15:08:13 +02:00
Show proper error message in diff when failing to load image
This commit is contained in:
@@ -86,6 +86,9 @@ func (self *ImageCollection) GetSizeIfAvailable(key string, page_size Size) (Siz
|
||||
}
|
||||
ans := img.renderings[page_size]
|
||||
if ans == nil {
|
||||
if img.err != nil {
|
||||
return Size{}, img.err
|
||||
}
|
||||
return Size{}, ErrNotFound
|
||||
}
|
||||
return Size{ans.img.Width, ans.img.Height}, img.err
|
||||
|
||||
Reference in New Issue
Block a user