Handle YUI errors
Update YUI error handling logic
Merge pull request #5 from beaumartinez/master

Handle YUI errors