[generator] Changed the error message to provide more information