Added list error message type checking