mozilla/openbadges — pull request #142 by stenington (2012-04-24 19:19:51+00:00)
Title: Good assertion, bad image

@brianloveswords This fixes the build by pointing to `https://github.com/mozilla/openbadges/raw/development/static/images/demo-badge.png` instead of `http://p2pu.org/_demo/cc.large.png` in the example assertion for testing. It looks like the p2pu png went away, so at least this way we have some more control.

I've also added a test for attempting to issue a valid assertion url pointing to an invalid image, which was previously ignoring an error condition. Now it returns a 502.

And finally I'm catching an error coming out of metapng and rethrowing with some more info, just to be a bit more informative about where the error is happening in the system. Since metapng is an external dependency it's a bit nicer to see where errors originate from within the system rather than bubbling up from other packages.