Make sure you have done proper download and zip file is not corrupt. Verify the MD5 checksum. Also try flashing stock, then a kernel(if on unlocked bootloader or else get root and recovery) and then try flashing ROMs with correct wipes
If you could elaborate the error, it'll be great.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?