tossr
tossr copied to clipboard
Universal SSR renderer powered by JSDOM
I'm getting this beautiful error ```pm2 0|Aquamon | [tossr] url: /aquarium/kararty 0|Aquamon | Error: TypeError: Invalid URL: ramsreef.com/aquarium/kararty 0|Aquamon | at errorHandler (/var/www/html/fishimon-server/node_modules/tossr/tossr.js:22:15) 0|Aquamon | at /var/www/html/fishimon-server/node_modules/tossr/tossr.js:107:25 0|Aquamon | at...
This fixed #14 for me. However, I think this deserves a bit more thought. It can lead to `resolveHtml()` getting called twice, for example.
Now that tossr is printing out errors properly (#11), it can still be hard to debug because they look like this: ``` Unhandled promise rejection: TypeError: Cannot read property 'dispatchEvent'...