show error message in type listing properly