better error message on unparseable body