serve: Catch exceptions when rebuilding site.
authorDavid Thompson <dthompson2@worcester.edu>
Fri, 22 Apr 2016 02:37:44 +0000 (22:37 -0400)
committerDavid Thompson <dthompson2@worcester.edu>
Fri, 22 Apr 2016 02:37:44 +0000 (22:37 -0400)
commit0d67128c3da6413546015fa9092a0017f50d46b9
tree83e6e4ad45916d9a1974913c812bf2ab06ac7d5b
parent473868946feab62cf5f73e4ef93a85b54e40c358
serve: Catch exceptions when rebuilding site.

Now 'haunt serve --watch' won't crash when you put some bad code in a
post!

* haunt/ui/server.scm (call-with-error-handling): New procedure.
(watch): Wrap build-site call in call-with-error-handling form.
haunt/ui/serve.scm