Skip to content
Permalink
Browse files

More useful stb-image error handling

  • Loading branch information
kmcallister committed Nov 2, 2014
1 parent 035ff19 commit a4bf64c58218a0439c174b99d2c4c0b8f79425da
Showing with 8 additions and 2 deletions.
  1. +8 −2 components/net/image/base.rs
@@ -75,8 +75,14 @@ pub fn load_from_memory(buffer: &[u8]) -> Option<Image> {
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
}
}
}
}

5 comments on commit a4bf64c

@bors-servo

This comment has been minimized.

Copy link
Contributor

@bors-servo bors-servo replied Nov 3, 2014

saw approval from jdm
at kmcallister@a4bf64c

@bors-servo

This comment has been minimized.

Copy link
Contributor

@bors-servo bors-servo replied Nov 3, 2014

merging kmcallister/servo/stb-error = a4bf64c into auto

@bors-servo

This comment has been minimized.

Copy link
Contributor

@bors-servo bors-servo replied Nov 3, 2014

kmcallister/servo/stb-error = a4bf64c merged ok, testing candidate = cef58cc

@bors-servo

This comment has been minimized.

@bors-servo

This comment has been minimized.

Copy link
Contributor

@bors-servo bors-servo replied Nov 3, 2014

fast-forwarding master to auto = cef58cc

Please sign in to comment.
You can’t perform that action at this time.