openlayers/openlayers — pull request #752 by MarkMYoung (2012-11-08 20:54:36+00:00)
Title: Update lib/OpenLayers/Layer/Bing.js

If an API key expires, you will see an uninformative error "undefined is not an object evaluating this.metadata.resourceSets[0].resources".
I am not sure whether introducing a new event type ('loaderror') is the best solution, but something needed to be done to capture errors thrown by the anonymous callback dynamically added to the page as a script tag.