Better YUI error handling