Log front-end errors

Closes gh-18.