How can I detect failure to load an image in Elm

Viewed 660

How can I detect that an image was failed to be load in Elm?

I use img [ src "/path/to/image" ] and would like to know if the image failed to load. In plan old JavaScript I would register to onError event of img but I don't see onError in Elm.

1 Answers
Related