mozilla / openbadges-bakery

An OpenBadges image baking library that works with PNGs and SVGs
Mozilla Public License 2.0
23 stars 38 forks source link

Watch for errors when baking. #5

Closed brianloveswords closed 11 years ago

brianloveswords commented 11 years ago

We need to listen for an error event or else it escalates and an uncatchable error gets thrown. This was happening in the backpack when someone would try to send in an image that was not a PNG a signature error would get emitted, but the baker.bake method was not listening on the error event.