add custom error formatter

Fixes #69
space