Simplify displayErrors