Linting and improve error message.