Prettify and simplify error