Make error reporting much more clear and helpful.