log image loading errors

This commit is contained in:
Shish 2024-01-01 21:16:47 +00:00
parent aea533b345
commit ec567d399a

View file

@ -20,6 +20,7 @@ class PixelFileHandlerTheme extends Themelet
'data-width' => $image->width,
'data-height' => $image->height,
'data-mime' => $image->get_mime(),
'onerror' => "shm_log('Error loading >>{$image->id}')",
]);
$page->add_block(new Block("Image", $html, "main", 10));
}