better error handling

/cc https://github.com/afeld/mustachio/issues/21