Merge pull request #781 from Hixie/better-exceptions Better exception handling for rendering library.