more consistent output in errors

closes #409