Adding more verbose error messge for unknown types