diff --git a/components/net/image/base.rs b/components/net/image/base.rs index 82215be9eb1..affbd705ae0 100644 --- a/components/net/image/base.rs +++ b/components/net/image/base.rs @@ -75,8 +75,14 @@ pub fn load_from_memory(buffer: &[u8]) -> Option { pixels: png::RGBA8(image.data) }) } - stb_image::ImageF32(_image) => fail!("HDR images not implemented"), - stb_image::Error(_) => None + stb_image::ImageF32(_image) => { + error!("HDR images not implemented"); + None + } + stb_image::Error(e) => { + error!("stb_image failed: {}", e); + None + } } } }