log image loading errors
This commit is contained in:
parent
aea533b345
commit
ec567d399a
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Reference in a new issue