Add more useful debug info to validation error