improve error message in illformated unknown record type, thanks Jelte for reporting