fixed #8 - unifying error rendering in a single private method.