Improve error when generate/block has no label